Quote:
Originally Posted by Solicitous
Great work, I havent been able to test it as I can't compile it under Linux. It is ok, I might when I have time load my virtual windows install and give it a go.
|
I don't have a Linux box, or I'd modify it. There shouldn't be a whole lot to modifying it:
1) Change the "CreateFile()" calls to "open()" or your favorite file access library.
2) Grab the definitions for the Windows bitmap structures (they HAVE to be on the net somewhere, and if not, holler, I can post them for you... come to think of it, I SHOULD have just included them in the main.c file.)
3) Modify the GetSize() function, which could be as simple as "open the file for reading, seek to the end, close the file and return the seek length".
Everything in the MD5 files is JUST like I grabbed it off the net, and it compiled without errors the first time, so the MD5 stuff should work fine on Linux also. Other than that, it's just fairly straight-forward "read the files, mung the data, write the files" command line stuff that should be just as easy to do on Linux.