Tools bin2res Written by &name-juergen-schmied; &email-juergen-schmied; (11/99) (Extracted from wine/documentation/resources) This document desribes tools for handling resources within wine bin2res This tool allows the editing of embedded binary resources within *.rc files. These resources are stored as hex dump so they can be stored within the cvs tree. This makes the editing of the embedded bitmaps and icons harder. Create binary files from an <filename>.rc</filename> file The resources in the .rc file have to be marked by a header: /* BINRES idb_std_small.bmp */ IDB_STD_SMALL BITMAP LOADONCALL DISCARDABLE { '42 4D 20 07 00 00 00 00 00 00 76 00 00 00 28 00' BINRES is the keyword followed by a filename. bin2res -d bin rsrc.rc generates binary files from all marked resources. If the binary file is newer it gets not overwritten. To force overwriting use the -f switch. Create a <filename>.rc</filename> file from binaries Put a header followed by empty brackets in the .rc file. /* BINRES idb_std_small.bmp */ {} Then run bin2res rsrc.rc. It will merge the resources into the .rc file if the binary resources are newer than the.rc file. To force the resources into the .rc file use the -f switch. If there is already a resource with the same filename in the .rc file it gets overwritten. output of <command>bin2res</command> bash-2.03# ../../tools/bin2res -d bin shres.rc [000.ico:c][003.ico:c][008.ico:s][015.ico:s][034.ico:s] s means skipped, c means changed.