It's simple, just look into demo.rc file.
There are defined files, whitch should be embedded in your exe file.
Code: Select all
B1 BITMAP res\BUTTON.BMP
B2 PNG res\img.PNG
B3 ICON res\img.ICO
B1, B2 and B3 are alises of embedded files;
BITMAP, PNG, ICON are types of embedded files;
res\BUTTON.BMP, res\img.PNG, res\img.ICO are files that the compiler will attach to your .exe file.
In the source code file, you can use the aliases of the attached files, ex:
PICTURE "B1" - "B1" alias indicates the embedded file BUTTON.BMP
PICTURE "B2" - "B2" alias indicates the embedded file img.PNG
PICTURE "B3" - "B3" alias indicates the embedded file img.ICO
Make sure that the types are in uppercase, there is case sensitive.
You can check if the files are attached by extracting them from the created exe file, eg using 7-zip.
There should be a ".rsrc" folder with yours files.