Hi, I got a problem with a resource file. In my *.rc file I've defined a menu:
Code:
#include "resources.h"
#include "afxres.h"
MAINMENU MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New", IDM_FILE_NEW
MENUITEM "E&xit", IDM_FILE_EXIT
END
/* POPUP "&Window"
MENUITEM "&Close All", IDM_WINDOW_CLALL
END
POPUP "&Help"
BEGIN
MENUITEM "&Help", IDM_HELP_HELP
MENUITEM "&About OurCANOE", IDM_HELP_ABOUT
END*/
END
and in my resource.h file I have the definitions of the IDM identifiers...
Code:
#define IDM_FILE_NEW 10000
#define IDM_FILE_EXIT 10001
//enum{IDM_FILE_NEW = 10000, IDM_FILE_EXIT};
//enum {IDM_WINDOW_CLALL = 20000};
//enum {IDM_HELP_HELP = 30000, IDM_HELP_ABOUT};
I wanted to use the enum type, to define these identifiers, so I the numbers are assigned automatically, but the compiler throws an error. Is it even possible to use the enum type instead of #define? If not, why? :-)
Thanks in advance.