Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29238 Discussions

Question about ressource.h and ressource.rd

tropfen
New Contributor I
401 Views
Hello,

i am using VS2008 in combination with IVF 11.1.xxx to build a win32 application based on Xeffort. To design dialogs i am using the VS resource dialog.

As far as i understand VS is saving the dialog elements in the file ressource.h . There i can find mutiple line containing
#define IDC_Name1 1001
#define IDC_Name2 1002
...

Based on the file ressource.h file during compilation the ressource.rd is produced. Containing the same names and numbers.

In my ressource.h file there are multiple definid numbers, eg:
#define IDC_Name11 1011
#define IDC_Name21 1011

Is this a problem? Should i change this numbers to unique number? Will multiple defined numbers produce problems?

Thanks in advance
Frank


0 Kudos
2 Replies
anthonyrichards
New Contributor III
401 Views
Probably only if the controls to which they refer are in the same dialog. You can always change the control ID number within the Resource editor. Open the Properties page for the control and in the ID edit box, where it displays IDC_NAME11, you can edit it by typing instead

IDC_NAME11=1234

and the control ID value will be changed to 1234.
You can view all the resource symbol values using the 'View..Resource Symbols' menu item, so that you can see what integer each control ID equals.
0 Kudos
Steven_L_Intel1
Employee
401 Views
I assume you mean resource.fd. This is created by running the deftofd tool that Fortran supplies. The numbers should match the .h. If you find they don't, please attach the .h and .fd so I can take a look at it.
0 Kudos
Reply