4.0 - creating the main frame创建主框架
现在我们将创建我们程序的主框架: 【程序编程相关:Reentrancy and Threa】
now we will create the main frame of our program: 【推荐阅读:Lisp 的计算整数指数的程序】
在include后加入两个原型 【扩展信息:记录一些Clisp的有意思的东东, 只是】 add two prototypes after the includes: winmain proto stdcall :dword, :dword, :dword, :dwordwndproc proto stdcall :dword, :dword, :dword, :dwordthese prototypes will tell masm how many parameters these functions take (4 dwords in this case)
这些原型将告诉masm这些函数需要多少个参数(本例中为4个dword)
add these to the .data and .data? sections of your program: 把这些加入到你的程序的.data与.data?中: .dataappname db "mosaic",0classname db "mosaic32",0.data?hinstance dd ?appname and classname are strings used for the main window, hinstance is a dword that will hold the application instance handle.
appname与classname是用于主窗口的字符串.hinstance 是一个将装有程序实例句柄的dword.
start of code:
代码部分的开始:
... 下一页