bin2res converts a binary file to a .res file to embed binary data into executables.
QuoteUsage : bin2res binaryfile.ext ResID
ResID can be a number with a leading symbol # or a string identifying
the binary data.
The tool works like a simple resource compiler converting binary files to custom resource data. Assume that you have a .rc file named rsrc.rc like the following :
MYSONG RCDATA song.mp3
To compile :
rc rsrc.rc
and you have a .res file which can be linked with the main module.
The tool simplifies the whole process with only one step :
bin2res song.mp3 MYSONG
or you could you specify an integer to identify the resource :
bin2res testfile.txt #1000
Full source code is included. You will find also a Masm and a PellesC demo accompanying the tool.
http://vortex.masmcode.com/files/bin2res10.zip