Fromethius
June 29th, 2007, 01:38 PM
How come, whenever I use a resource, I have to define it as an integral and call the integer's value to use it?
For example, I have this:
CONTROL "",IDC_COMBOBOX,"ComboBox",0x50010003,8,90,62,111
Then I define it like this:
#define IDC_COMBOBOX 30000
I can use this in my main.cpp like this:
MAKEINTRESOURCE(30000)
But when I go like this:
IDC_COMBOBOX
It says:
'IDC_COMBOBOX' undeclared (first use this function)
Some help would be great. I don't like using MAKEINTRESOURCE and then using the integral definition because it confuses me.
For example, I have this:
CONTROL "",IDC_COMBOBOX,"ComboBox",0x50010003,8,90,62,111
Then I define it like this:
#define IDC_COMBOBOX 30000
I can use this in my main.cpp like this:
MAKEINTRESOURCE(30000)
But when I go like this:
IDC_COMBOBOX
It says:
'IDC_COMBOBOX' undeclared (first use this function)
Some help would be great. I don't like using MAKEINTRESOURCE and then using the integral definition because it confuses me.