标题:[求助]为什么新建的窗口只是一闪而过?
只看楼主
maozhong89
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2007-6-22
得分:0 
回复:(无理取闹)还是把原程序或者是错误信息发上来...

#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

不知道哪里有问题...
帮忙看下,谢谢!!!


2007-08-21 11:06
无理取闹
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:53
帖 子:4264
专家分:0
注 册:2006-7-26
得分:0 
MAINMENU MENUEX 改成MAINMENU MENU

win32汇编
病毒 加密
目前兴趣所在
2007-08-21 21:03
无理取闹
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:53
帖 子:4264
专家分:0
注 册:2006-7-26
得分:0 
还有加上#include        <resource.h>

win32汇编
病毒 加密
目前兴趣所在
2007-08-21 21:04
maozhong89
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2007-6-22
得分:0 
回复:(无理取闹)还有加上#include
成功!太感谢bz的帮助了
2007-08-22 10:27



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-163463-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.090239 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved