LINK
and LLINK
RESOURCE
members
A LINK
or LLINK
member must be initialised with a resource-identifier. This resource identifier may be in the form of a resource name or a number.
To specify a resource in the same file, use the resource name in lower case.
It is not necessary for the resource to be defined at the time the statement is processed, but an error will result if the
resource is not defined in the entire file. When declared in lower case any NAME
specified in the file will be added onto the resource id.
To specify a resource in a different file, use the resource name in upper case.
To reference it you must #include
the relevant header file containing the resource. All resource names are turned into upper case when their #define
s are generated in the header file this is how the resource compiler recognises that it must look for the resource in another
file. If this resource does not exist in any #include
d file then an error is generated.
The resource identifier may also be specified as a number: in this case it is the resource id (including NAME
).
If no such resource id exists either in the file or any #include
d header files, no error is generated by the compiler. The programmer must therefore ensure that the id is a valid reference.
See Resource file definition for information on how resource ids are generated. See also NAME statement and related statements.