Click on the following link to download the example: ReadArray.zip
Download some additional files required by the example: CommonFramework.zip and CommonFile.zipClick: browse to view the example code.
View the additional files: browse CommonFramework and browse CommonFile.This example shows how to load data from resource files into a class. ReadArray loads the resource identified as SECOND from the resource file; this is an array of DATA structures. (The resource FIRST is not used in this example)
The example constructs
a CResDataArray
object to contain an array of CResData
objects,
one for each DATA structure in the array. The CResDataArray
object
can also display the individual items of each DATA structure at the test console.
All WORD, BYTE and LONG are interpreted as signed values.
The example follows on from the Reading from a resource file example.