#define IDI_ICON1 1100
#define IDM_ABOUT 1000
#define MAINMENU 1002
#define IDM_NEW 1003
#define IDM_OPEN 1004
#define IDM_QUIT 1005
#define IDM_UNDO 1006
#define IDM_CUT 1007
#define IDM_COPY 1008
#define IDM_PASTE 1009
#define IDM_SELALL 1010
#define IDM_DELETE 1011
#define IDM_SAVE 1012
#define IDM_SAVEAS 1013
IDI_ICON1 ICON "edit.ico"
MAINMENU MENUEX
{
POPUP "&File"
{
MENUITEM "&New", IDM_NEW
MENUITEM "&Open\tF3", IDM_OPEN
MENUITEM "&Save\tF2", IDM_SAVE
MENUITEM "Save &As", IDM_SAVEAS
MENUITEM SEPARATOR
MENUITEM "E&xit\tAlt+X", IDM_QUIT
}
POPUP "&Edit"
{
MENUITEM "&Undo\tCtrl+Z", IDM_UNDO
MENUITEM SEPARATOR
MENUITEM "Cu&t\tCtrl+X", IDM_CUT
MENUITEM "&Copy\tCtrl+C", IDM_COPY
MENUITEM "&Paste\tCtrl+V", IDM_PASTE
MENUITEM "&Delete\tDel", IDM_DELETE
MENUITEM SEPARATOR
MENUITEM "Select &All", IDM_SELALL
}
POPUP "&Help"
{
MENUITEM "&About\tF1", IDM_ABOUT
}
}
MAINACCEL ACCELERATORS
{
VK_F1, IDM_ABOUT, VIRTKEY
VK_F2, IDM_SAVE, VIRTKEY
VK_F3, IDM_OPEN, VIRTKEY
"x", IDM_QUIT, ALT
}
报错就是:
D:\masm32\bin>rc edit.rc
edit.rc (28): error RC2243 : invalid string expression at SEPARATOR
edit.rc (29): error RC2236 : required parameter missing
edit.rc (35): error RC2243 : invalid string expression at SEPARATOR
edit.rc (36): error RC2236 : required parameter missing
edit.rc (40): error RC2243 : invalid string expression at SEPARATOR
edit.rc (41): error RC2236 : required parameter missing
edit.rc (53): error RC2104 : undefined keyword or key name: VK_F1
不知道哪里有问题...
帮忙看下,谢谢!!!