Hellow;
Check the content the resource.h file???.
#define MENU_FILE_ID_OPEN 100
#define MENU_FILE_ID_CLOSE 102
#define MENU_HELP_ID_ABOUT 102????
#define MainMenu 103
How count the menu in the *.rc file???
Code:
MainMenu MENU DISCARDABLE
BEGIN
POPUP "File"
BEGIN
MENUITEM "Open", MENU_FILE_ID_OPEN
MENUITEM "Close", MENU_FILE_ID_CLOSE
END
POPUP "Help"
BEGIN
MENUITEM "About", MENU_HELP_ID_ABOUT
END
END
Otherwise, NOT declarate the following file, inside the *.rc file!!!!:
#include <windows.h>
The source code:
Code:
#include <windows.h>
#include "resource.h"
MainMenu MENU DISCARDABLE
BEGIN
POPUP "File"
BEGIN
MENUITEM "Open", MENU_FILE_ID_OPEN
MENUITEM "Close", MENU_FILE_ID_CLOSE
END
POPUP "Help"
BEGIN
MENUITEM "About", MENU_HELP_ID_ABOUT
END
END
Bye