Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


RESOURCE statement

<resource-statement>
resource-statement ::=
RESOURCE <struct-name> [ <resource-name> ] { <resource-initialiser-list> }

The RESOURCE statement is used to generate a resource in the resource file. The statement specifies three things:

Example

As an example, given the struct definition

STRUCT NCEDIT
 {
 WORD current;
 WORD low;
 WORD high=65535;
 }

you could define a resource:

RESOURCE NCEDIT memory_size
 {
 low=640;
 high=1024;
 }

Thus, in the resource file, current has the value compiler default value of 0, low has the value 640 (specified in the resource definition) and high has the value 1024 (specified in the resource definition, overriding the default for the struct type).