• entries
72
38
• views
22334

# Aluminimum foil

220 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:
SuccessInitilizedUsing 64 KB sets2 sets with 28 KB remainingComparing...|OFFSETh|Ah:Bh000000F0|BD:95000000F1|C7:CB000131C4|BD:95000131C5|C7:CB0001A8FC|EE:DA0001A8FD|79:7B0001F134|EF:500001F135|12:E60001F136|BE:D00001F137|BB:510001F138|05:4A0001F139|F2:8B0001F13A|42:BB0001F13B|4A:4B0001F13C|8B:AA0001F13D|CF:A40001F13E|71:120001F13F|51:580001F140|FF:E90001F141|86:A10001F142|E3:360001F143|4C:2E0002044C|1C:1D34 ms to scan.Found 23 diffs

edit: corrected the u_int to ptr, because thats the real truth

There are no comments to display.

## Create an account

Register a new account