The Resource Header File (.h)

In the resource header file, VisualAge uses #define statements to assign unique resource IDs to each of the string resources listed in the .rc file. VisualAge also assigns unique window IDs to all primitive visual parts. The only resource ID that you must specify is the starting resource ID for the part; you do that in the Class Editor. During code generation, VisualAge uses this number as the resource ID of the first text string and increments the resource ID of each successive text string by 1.

For an example, look at the todolist.h file that VisualAge generates for the ToDo List application. The first #define statement in the todolist.h file appears as follows:

#define RC_ToDoList  10000

The number in this #define statement, 10000, is the starting resource ID.


Related concepts
The Resource File (.rc)
Resource Files Generated for Translation

Related procedures
Generating Code

Related references
Class Editor