-
Errors in Resource
I am using Cfree 5 IDE with minGW compiler.
In my project while compiling my resource file I am getting an error
Expected unqualified-id before numeric constant
my resource file is coded like this
Code:
#define IDMAINICON 100
#define IDMAIN_FILE 2100
#define IDMAIN_FILE_NEW 2101
#define IDMAIN_FILE_EXIT 2102
IDMAINICON ICON "SmIcon.ico"
IDMAIN_FILE MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New",IDMAIN_FILE_NEW
END
END
what could be the reason??
Plz F1
-
I'm not sure, because you don't have any line numbers in your error message, but I think the BEGIN/END inside the POPUP are incorrect. At least, according to this example:
POPUP resource