|
2鱼币
本帖最后由 不动明王 于 2013-6-1 16:32 编辑
- ;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- ;程序描述:第一个窗口程序
- ;作者:青灯苦竹 2583746755@QQ.com
- ;时间:2013-06-01 14:50:31
- ;修改:无
- ;
- ;
- ;
- ;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-
- .386
- .model flat,stdcall
- option casemap:none
- ;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- ;函数声明
- ;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- _ProcWinMain proto hWnd:dword,uMsg:dword,wParam:dword,lParam:dword;声明方式一
- ;_ProcWinMain proto hWnd:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM;声明方式二
- ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
- ; Include 文件定义
- ;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
- include windows.inc
复制代码 为什么窗口过程声明时,用方式一能编译通过,而方式二不能编译通过(我习惯先声明函数,再定义,所以请不要回答"直接定义过程而不需要声明"). |
|