-
windows resources
Hi
I'm trying to make a simple menu for my windows program
this is what the code in the .rc file looks like
Code:
GenMenu MENU
BEGIN
POPUP "&Help"
BEGIN
MENUITEM "About...", IDM_ABOUT
END
END
but when I compile I get an error
15 C:\Documents and Settings\Kathy\Desktop\WindowsApp\WinApp.rc [Resource error] syntax error
because of this line
Code:
MENUITEM "About...", IDM_ABOUT
Can anybody help?
-
How have you defined IDM_ABOUT? If you have it in a separate resource header then make sure you #include it in your resource script (*.rc). If you don't have it defined then you will obviously need to do so.
-
is IDM_ABOUT defined?
like this somewhere:
#define IDM_ABOUT 9012
-
Thanks,
I did forget to include the header in the resource file, i put it in the .cpp file
now my menus dissapeared in the window altogether though.
probably something silly. i'll go track down what i did
-
Make sure you have this in your RC file at the top:
#define APSTUDIO_READONLY_SYMBOLS
#include <windows.h>
#undef APSTUDIO_READONLY_SYMBOLS