Ok, now I have resources.rc:
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
resource.h:
Code:
#define MENU_FILE_ID_OPEN 100
#define MENU_FILE_ID_CLOSE 102
#define MENU_HELP_ID_ABOUT 102
#define MainMenu 103
and in wc.cpp:
Code:
#include "resource.h"
// rest of script
wc.lpszMenuName = "MainMenu";
// rest of script
No errors and no menu!