An application can also define its own resource. The resource can be any data that the application intends to use. A user-defined resource statement has the form:
───resource-type───typeID───nameID──────────────────────────── ────┬──────────────┬───┬─────────────┬───filename──── └──loadoption──┘ └──memoption──┘
typeID
See Resource Load and Memory Options for a description of LOADOPTION.
See Resource Load and Memory Options for a description of MEMOPTION.
BEGIN data-definition [, data-definition] ... . . . END
For example, the RESOURCE statement might be written as follows:
RESOURCE MYRES "array" BEGIN 13L, 26L END
When the resource compiler (RC.EXE) encounters one or more font resources, or any custom resource having type-id of 1000, it creates a font directory resource which it adds to the output binary data.
Example
RESOURCE MYRES "array" DATA.RES RESOURCE 300 14 CUSTOM.RES