Get full path of argv[0] before we change directories.
[wine.git] / documentation / resources
blob674ddbc8db2757cc14a15963890fe371229303bf
1 This document desribes tools for handling resources within wine
3 ### bin2res ###
5  This tool allows the editing of embedded binary resources within 
6  *.rc files. These resources are stored as hex dump so they can be
7  stored within the cvs. This makes the editing of the embedded
8  bitmaps and icons harder.
9  
10  ### Create binary files from.rc ###
12   the resources in the .rc file have to be marked by a header:
14         /* BINRES idb_std_small.bmp */
15         IDB_STD_SMALL BITMAP LOADONCALL DISCARDABLE
16         {
17          '42 4D 20 07 00 00 00 00 00 00 76 00 00 00 28 00'
19   BINRES is the keyword followed by a filename.
20   "bin2res -d bin rsrc.rc" generates binary files from all marked
21   resources. If the binary file is newer it gets not overwritten.
22   To force overwriting use the -f switch.
23   
24  ### Create a .rc file from binaries ###
26   Put a header followed by empty brackets in the.rc file.
28         /* BINRES idb_std_small.bmp */
29         {}
31   Then run "bin2res rsrc.rc". It will merge the resources into the
32   .rc file if the binary resources are newer than the.rc file.
33   To force the resources into the.rc file use the -f switch.
34   If there is already a resource with the same filename in the.rc 
35   file it gets overwritten.
37   ### output of bin2res ###
39         bash-2.03# ../../tools/bin2res -d bin shres.rc
40         [000.ico:c][003.ico:c][008.ico:s][015.ico:s][034.ico:s]
41         
42    s means skiped, c means changed
43 ---
45 juergen.schmied@debitel.net (11/99)