Hopefully this is my last question of the day...
I now have:
The error is:
error: initializer element is not constant
I'm thinking this error is because I'm initializing a const variable with another variable which the compiler is clamping down on (Is this right?).
If I then take out the 'const' keyword from all variables then I still get the same error??
Can you help me??
My last compiler was Visual Studio so It must have been pretty lenient on the rules?
Thanks
I now have:
Code:
#define WM_USER 0x0400
const UINT MSGID_FIRST = WM_USER + 301;
const DWORD MSGID_NTLX_FIRST = MSGID_FIRST; <-- error
The error is:
error: initializer element is not constant
I'm thinking this error is because I'm initializing a const variable with another variable which the compiler is clamping down on (Is this right?).
If I then take out the 'const' keyword from all variables then I still get the same error??
Can you help me??
My last compiler was Visual Studio so It must have been pretty lenient on the rules?
Thanks