(Translation) Win32ASM instance -0

zhaozj2021-02-16  48

This tutorial is very good, I hope you can like it.

- Translator

Mosaic Tutorial Puzzle Tutorial

Introduction 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 be placed in the right order by shuffeling the pieces into place. This lesson will teach you how to create this Game step by step the Tutorials First Before You Start with this Lesson. It's level is meansd at the beginning, everything is expected.

In this tutorial, you will create a simple puzzle game. You may know this word fans. A picture or a digital matrix must be dragged from one place to another place. This tutorial will teach you step how to create this game. Before starting this tutorial, read the previous tutorial (Win32ASM tutorial - translator's note) is very helpful. Everything will be explained for beginners.

ProLogue preface

This lesson is aimed at the beginner in asm. Every step in creating the program is explained. It is not just source code with comments, but it teaches you how to build up a program from scratch. My advice is to fully read the tutorial, And try to make the program yourself. This Lesson is Quite Long But It Will Help You Very Much if You Read It all.

This tutorial focuses on ASM's beginners. Every step in the program creation will explain. This is not just the source code with annotations, but teaches you how to create a program in the family. My suggestion is to read the tutorial in front and try it to write the program. This tutorial is quite long, but if you have read, it will be very beneficial to you.

Checklist list

Make Sure You Have The Following Installed:

Make sure you have installed tools:

· The Masm32 Package, Version 6 with at Least Service Pack 2 (Win32ASM.cjb.net)

· A good resource editor. This is not Necessary, But a lot easier to do it by hand. To make this lessth you know how to use a resource editor you can use that instead Good resource editors are:. Borland Resource Workshop * (protools.cjb.net) and the resource editor in Microsoft Visual Studio (Visual C ) · A resource compiler (rc.. Exe Will Do For Hand Written Files and Microsoft Visual Studio's Resource Editor, but not for brw).

Make Sure That You Have Included The / Masm32 / Bin Folder and The Paths of The Other Necessairy Tools Included in Your Path.

· MASM32 package, version 6 plus at least SP2

· A good use resource editor. This is not necessary, but it will be easier to use it. In order to make this tutorial to all people, I will use manual way to explain how to write resources (they are just a text file). But if you know how to use the resource editor, you can use it instead. Good resource editor has: Borland Resource Workshop (Protools.cjb.net) and the resource editor in Microsoft Visual Studio (Visual C ).

· A resource compiler (rc.exe can be used for hand-written files and Microsoft Visual Studio resource editor, but can not be used for BRW)

· Make sure you contain the / masm32 / bin folder and other necessary tools in your path (PATH environment variable).

* BRW is no longer supported by Borland so you can download this legally (although I do not know for sure), but you need the brc32 tool to compile it (their resoure format is somewhat different from microsoft's, so using rc.exe wouldn 'T Work). This Tool Is Included In The Tasm Package But You Cannot Download this Legally.

* BRW is no longer supported by Borland so you can legally download (although I don't know), but you need BRC32 tool to compile it (which is different from Microsoft, thus making rc.exe work abnormal), This tool is included in the TASM package, but you can't let it download it.

Glossary tall dictionary

AS this is a lesson for the real beginners, this list of definitions can be useful. Read Themiff The rest of the reason. Because this is a tutorial for beginners This definition list may be useful. If you still don't know them, read it. It will help you understand the course behind you.

Resources

A Resource IS Data That Is Stored In The Program File. A Table with strings, menu, Dialog, Bitmap, User Defined Data Etc. The Resources Are First Defined in a.rc file. This is a simple text file which you can write manually but it's much easier to use a resource editor like borland resource workshop or the editor in visual studio. The resources are then compiled into a binary file (.res). This file is then linked (yes with link ................... .net.

Owner-Drawn Windows

Owner-drawn windows are windows that are drawn by the program instead of the system. In this lesson a static control is used as an owner-drawn window. A WM_DRAWITEM message is sent to the window when the control needs to be drawn.

Local Variables

Local variables are variables (ie data) that is used only in a specific procedure. Local data is saved while the procedure is running, but deleted afterwards (it is stored on the stack). Local variables are declared with LOCAL at the start of a Procedure: SomeProc Proc .... Local LocalVar: DWORD Resources

Resources are data stored in the program file. A resource can be an icon, a string table, a menu, a bitmap, user-defined data, and the like. Resources first define in the RC file. This is a simple and plain text file you can manually but it is easier to use like Borland Resource Workshop or Visual Studio. Then, the resource is compiled into a binary (.res). Once again, the file is linked (yes, using the linker) to the executable. Resources through their ID (s), storage. These IDs can be set in the resource file and in your source code, you use the same ID to read resources. Owner-drawn window

The Owner-Drawn window is a window drawn by the program instead of the system. In this tutorial, a static control is used as the Owner-Drawn window. WM_DRAWITEM message is sent to the window when the control needs to be drawn

Local variable

The local variable is merely a variable used to specify the process (that is, data). The local variable is saved when the process is running but then deletes (he stores in the stack). The local variable starts at the process of local declaration: SomeProc Proc .... Local LocalVar: DWORD

转载请注明原文地址:https://www.9cbs.com/read-26622.html

New Post(0)