Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Objects

The following Resource Editor screen shows an object that is an image file:

The following CIF example shows the primitive for an image file. The values of the id and data fields are taken from the attributes shown in the Resource Editor, as indicated by the comments in bold.

The id value, IDS_OBJECT_5001, is resolved to the numeric ID in myapp_res.h.

include "myapp_res.h" -- defines all the IDS_XXX
ModRsc{
 id    =  IDI_OBJECT_5001,  -- ID
 type  = RESTYPE_MIMETYPED,     -- Object type
 data  = ImageRscData("image/bmp", BytesOfFile("c:/TEMP/image.bmp")),
                     -- MIME Type, Source & Data
}