• Advertisement
Sign in to follow this  
  • entries
    72
  • comments
    38
  • views
    22283

Aluminimum foil

Sign in to follow this  

205 views

ugh, I got so sick of trying to make my paddle react correctly to plane collisions. I decided to play around with another program I wrote a while back. It was actually my first real functional Windows program. To be a little more specific, my first one with buttons and dialog and widgets. Anyways, its called WinBinDiff2 and it does a byte compare on two equal sized files. Outputs the hex address of any mis-matched bytes, and also the data that is different. Well, I was ready to zip it up and let you people have it, but I found a bug that I am only able to reproduct in release builds. If the length of the filename A "fna" is longer than the length of filename B "fnb", it fails to open the files. Really really not sure about this, I cannot get it to do it in debug. And I even added some code to display the filenames that were passed. But that only caused a problem in printf. So I am going to rebuild the file interaction methods, or I should really say: good-bye _open()/_close(), hello fstream! Why the heck not, it needs .NET to run the Forms, I better just get into the habit of using the streams anyway. Plus my Log class for my game uses them, so it wont really be too hard to impliment.



I changed a line from "++ptr;" to "ptr++;" and that was the result in the file :) Neat-o 23 different operations.

Here is what the full output looks like, Ill use sourcetags to keep the length down:

Success
Initilized
Using 64 KB sets
2 sets with 28 KB remaining
Comparing...
|OFFSETh|Ah:Bh
000000F0|BD:95
000000F1|C7:CB
000131C4|BD:95
000131C5|C7:CB
0001A8FC|EE:DA
0001A8FD|79:7B
0001F134|EF:50
0001F135|12:E6
0001F136|BE:D0
0001F137|BB:51
0001F138|05:4A
0001F139|F2:8B
0001F13A|42:BB
0001F13B|4A:4B
0001F13C|8B:AA
0001F13D|CF:A4
0001F13E|71:12
0001F13F|51:58
0001F140|FF:E9
0001F141|86:A1
0001F142|E3:36
0001F143|4C:2E
0002044C|1C:1D
34 ms to scan.

Found 23 diffs




edit: corrected the u_int to ptr, because thats the real truth
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement