|
问个问题[求助]
我用MASMPlus出现的问题是这个 ml.exe /c /coff /nologo /Fo"a.obj" "E:\masmplus\a.asm" Assembling: E:\masmplus\a.asm E:\masmplus\a.asm(93) : error A2006: undefined symbol : hwndOwner ------------------------------------------------------------------------------------------- 我用MASM32出现的问题也是这样 Assembling: a.asm a.asm(93) : error A2006: undefined symbol : hwndOwner |
|
问个问题[求助]
麻烦来多些朋友看下,帮忙解决下,谢谢 |
|
|
|
问点别的事情[求助]
顶下,麻烦朋友帮忙看下顺便解答一下 |
|
书上讲“菜单”给了个程序编译看不见菜单[求助]
哦,我知道了 |
|
书上讲“菜单”给了个程序编译看不见菜单[求助]
单独编译一下Menu.rc吗? |
|
书上讲“菜单”给了个程序编译看不见菜单[求助]
请问FirstMenu.res怎么来的? |
|
书上讲“菜单”给了个程序编译看不见菜单[求助]
还是这个问题。“Menu.rc资源文件链接到程序里”,怎么放? |
|
[求助]一些问题
后面的Menu.rc 应该怎么弄?我直接一起放在工具里面编译连接没用,出现不了菜单,后来我才想H还是用MASM32 就这个问题了,上面的问题我解决了,现在请朋友告诉我Menu.rc 应该怎么弄 |
|
[求助]一些问题
我输入了这些指令 ml /help link /? 可以看到看到了一大堆的输出,是怎么使用的 不过我编译比如a.asm的时候就出现 MASM : warning A4018: invalid command-line option : /c/coff MASM : fatal error A1017: missing source filename |
|
[求助]一些问题
我本来是打算用这个masmplus 后来因为看菜单那章,编译连接后出现不了菜单 就是我前两天问过的问题 .386 .model flat,stdcall option casemap:none WinMain proto :DWORD,:DWORD,:DWORD,:DWORD include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc includelib \masm32\lib\user32.lib includelib \masm32\lib\kernel32.lib .data ClassName db "SimpleWinClass",0 AppName db "Our First Window",0 MenuName db "FirstMenu",0 ; The name of our menu in the resource file. Test_string db "You selected Test menu item",0 Hello_string db "Hello, my friend",0 Goodbye_string db "See you again, bye",0 .data? hInstance HINSTANCE ? CommandLine LPSTR ? .const IDM_TEST equ 1 ; Menu IDs IDM_HELLO equ 2 IDM_GOODBYE equ 3 IDM_EXIT equ 4 .code start: invoke GetModuleHandle, NULL mov hInstance,eax invoke GetCommandLine mov CommandLine,eax invoke WinMain, hInstance,NULL,CommandLine, SW_SHOWDEFAULT invoke ExitProcess,eax WinMain proc hInst:HINSTANCE,hPrevInst:HINSTANCE,CmdLine:LPSTR,CmdShow:DWORD LOCAL wc:WNDCLASSEX LOCAL msg:MSG LOCAL hwnd:HWND mov wc.cbSize,SIZEOF WNDCLASSEX mov wc.style, CS_HREDRAW or CS_VREDRAW mov wc.lpfnWndProc, OFFSET WndProc mov wc.cbClsExtra,NULL mov wc.cbWndExtra,NULL push hInst pop wc.hInstance mov wc.hbrBackground,COLOR_WINDOW+1 mov wc.lpszMenuName,OFFSET MenuName ; Put our menu name here mov wc.lpszClassName,OFFSET ClassName invoke LoadIcon,NULL,IDI_APPLICATION mov wc.hIcon,eax mov wc.hIconSm,eax invoke LoadCursor,NULL,IDC_ARROW mov wc.hCursor,eax invoke RegisterClassEx, addr wc invoke CreateWindowEx,NULL,ADDR ClassName,ADDR AppName,\ WS_OVERLAPPEDWINDOW,CW_USEDEFAULT,\ CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,\ hInst,NULL mov hwnd,eax invoke ShowWindow, hwnd,SW_SHOWNORMAL invoke UpdateWindow, hwnd .WHILE TRUE invoke GetMessage, ADDR msg,NULL,0,0 .BREAK .IF (!eax) invoke DispatchMessage, ADDR msg .ENDW mov eax,msg.wParam ret WinMain endp WndProc proc hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM .IF uMsg==WM_DESTROY invoke PostQuitMessage,NULL .ELSEIF uMsg==WM_COMMAND mov eax,wParam .IF ax==IDM_TEST invoke MessageBox,NULL,ADDR Test_string,OFFSET AppName,MB_OK .ELSEIF ax==IDM_HELLO invoke MessageBox, NULL,ADDR Hello_string, OFFSET AppName,MB_OK .ELSEIF ax==IDM_GOODBYE invoke MessageBox,NULL,ADDR Goodbye_string, OFFSET AppName, MB_OK .ELSE invoke DestroyWindow,hWnd .ENDIF .ELSE invoke DefWindowProc,hWnd,uMsg,wParam,lParam ret .ENDIF xor eax,eax ret WndProc endp end start ************************************************************************************************************************** Menu.rc ************************************************************************************************************************** #define IDM_TEST 1 #define IDM_HELLO 2 #define IDM_GOODBYE 3 #define IDM_EXIT 4 FirstMenu MENU { POPUP "&PopUp" { MENUITEM "&Say Hello",IDM_HELLO MENUITEM "Say &GoodBye", IDM_GOODBYE MENUITEM SEPARATOR MENUITEM "E&xit",IDM_EXIT } MENUITEM "&Test", IDM_TEST } 后面的Menu.rc 应该怎么弄?我直接一起放在工具里面编译连接没用,出现不了菜单,后来我才想H还是用MASM32 |
|
[求助]一些问题
这个是设置汇编环境还有编译的时候遇到的问题 |
|
书上讲“菜单”给了个程序编译看不见菜单[求助]
非常谢谢你啊! |
|
书上讲“菜单”给了个程序编译看不见菜单[求助]
请问怎么将Menu.rc放到链接程序里? 我就把那段程序放在文本然后保存为.asm文件,进行编译和连接了 我是按照DOS下的汇编那样的步骤 具体怎么弄请告诉我下,好象没发现书里有讲怎么做的 |
|
书上讲“菜单”给了个程序编译看不见菜单[求助]
顶一下,来个高手帮我下 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值