Hi there, I would like to take some files I have, a dll and a inf file, and convert them into a char array, binary. After I have done that I would like to put them in my header file for example and than create file and write file the bytes into a dll or inf file that I had before. If there is an easier way through resources, I would be glad if someone could point me in the right direction to achieve my goal, that would be good as well.
I followed what andywestken recommended and was able to create the files from bytes, but when I tried to do create file and writefile my dll, it had a md5 signature and the signature is gone. How do I create it from bytes yet keep the signature. Or do I have to extract it?
So basically what your recommending ahcfan, is what andy recommended. Taking bytes and writing to a create-file. I can do all this but I want to keep my signature of my dll, how would I be able to do this?
You asked in your post if there was an easier way using resources and I just posted the one way I know of. If you make a byte-by-byte copy of the original file then I figure the MD5 hash should be identical.