-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Command: INCLUDE_RESOURCE fileName AS resourceName {TYPE resourceType} Descrtiption: A command to include (embed) a file as a resource. Parmeters: fileName Name of a file (NOT in quotes) to include. May include a path. resourceName Name of the resource (NOT in quotes). resourceType A constant integer (or a symbolic replacement for a constant integer) that is recorded in the .flx to indicate the type of resource. If omitted, DF_RESOURCE_TYPE_LINE is assumed. You uase any positive value for user-defined types. Do NOT use 0. 0 means the resource is uninitialized (registered, but not included.) DAC reserves the negative values. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#IF (!0>3) #SET Q$ !5 // specified type. #ELSE #SET Q$ DF_RESOURCE_TYPE_LINE // default to line. #ENDIF #IFDEF !3.RSC #RESOURCE !1 !3.RSC !q $0 // re-register resource; $0 = already named (just #ELSE // setting resource filename and type). #REPLACE !3.RSC |CI!ZR // create unique resource id. #RESOURCE !1 !Zr !q !3 // register new resource. #ENDIF