Introduction to Resources

Resources are a non-code section that is added to your application when it is linked and are available at run-time. They allow you to include virtually everything that your program will use in a single executable or DLL. Application resources are added to a resource definition script called an RC file then compiled to a RES file by the resource compiler that is associated with your assembler (usually RC.EXE). Once the resource script is compiled it is in RES file format and can be added to the link command line.

RadASM allows you to create resources and will handle the creation and maintenance of the RC files for you as well as automating the compiling and linking at build time. The main RC file appears in the project browser and can be edited manually if you wish to add an unsupported resource types. For the most part RadASM will generate a separate RC file for each type of resource, these files can be found in the \RES folder of your project. The includes in your main RC are all done automatically so it remains transparent.

When building resources you generally  give each resource a label, this label is normally assigned a numeric value that identifies the resource in your program. In order to make it easier to use the same labels in both your resource file and asm file there is a selection on the Tools menu called Export Id Equates. This will scan an RC file for all of it's equates and send them to the output window where they can be copied and pasted into your program.

Resource types directly integrated into RadASM :

BITMAPS
CURSORS
ICONS
IMAGES (Gif and JPG)
AVI
MIDI
WAVE
RCDATA
STRING TABLES
MENUS
VERSION INFO
DIALOGS
ACCELERATOR TABLES

Resource types integrated via AddIns: