当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 4.0 - Creating the main fram
 

 

 ·(译)win32asm实例-2    »显示摘要«
    摘要: 2.0 - design of the game游戏的设计 before we get started with programming, we will design the game first. 在我们开始编程前,我们先来设计游戏。 2.1 - basic idea基本的想法 the idea is to create a simple shuffle-puzzle. ......
 ·(译)win32asm实例-0    »显示摘要«
    摘要: 这个教程写得非常好,希望你能喜欢。 -译者 mosaic tutorial拼图游戏教程 introduction介绍 in this lesson you will create a simple mosaic game. you probably know this kind of puzzles. an image or a matrix of numbers have to b......


(译)win32asm实例-4
 

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, :dword

wndproc     proto stdcall   :dword, :dword, :dword, :dword

these 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?中:

.data

appname             db      "mosaic",0

classname           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:

代码部分的开始:


...   下一页
 ·怎样建立你自己的masm导入库    »显示摘要«
    摘要:怎样建立你自己的masm导入库 by iczelion (翻译:花心萝卜yqzq@163.net) 9.5.2000 这篇短文是讲述关于建立masm导入库(import libraries)技巧,我假设你已经知道什么是导入库。在下面,我将集中讲述建立masm导入库的方法。 masm导入库的格式: masm和vc++可以使用相同的导入库,ms导入库使用不同于tasm的omf格式的变更的co......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE