You are on page 1of 11

td_win32asm_030.

asm
;==============================================================================
;
Test Department's WINDOWS 32 BIT x86 ASSEMBLY TUTORIAL'S
030
;==============================================================================
;==============================================================================
; ==> Part 030 : example of a nonrectangular and/or transparent window
;-----------------------------------------------------------------------------; Starting windows 32 Bit assembly, ... I thought about a nonrectangular and/or
; transparent window. So here is one way ...
; First in WinMain we register and create our main window without a menubar.
; In the window procedure (WP1), responding to a WM_CREATE message, we create
; three buttons ( API=CreateWindowEx ) with the style BS_BITMAP.
; API=LoadBitmap loads the button bitmap from the resource file.
; We use API=SendMessage to send a BM_SETIMAGE message to the window procedure.
; Next we define regions ( the button regions ) and combine them together.
; Now we set this region to our main window region ( API=SetWindowRgn ) !!!
; If an event occurs, for example BN_CLICKED, we send a WM_COMMAND message to
; the window procedure ( API=SendMessage ) !
; We react with a message box. Here you can also perform any other action ...
; "lpfnWndProc" is a pointer to the subroutine label "WindowProc" ( WP1 ) where
; all the action code for this main window resist.
; "lpfnWndProc" is part of WndClassEx structure used by API RegisterClassEx.
;==============================================================================
; Assembler directives
;-----------------------------------------------------------------------------.386
; specifies the processor our program want run on
.Model Flat ,StdCall
; always the same for Win95 (32 Bit)
option casemap:none
; case sensitive !!!
;==============================================================================
; Include all files where API functins resist you want use, set correct path
;-----------------------------------------------------------------------------include D:\Masm32\include\windows.inc
includelib kernel32.lib
includelib user32.lib
includelib gdi32.lib
;==============================================================================
; Declaration of used API functions,take a look into WIN32.HLP and *.inc files
;-----------------------------------------------------------------------------GetModuleHandleA
PROTO :DWORD
LoadIconA
PROTO :DWORD,:DWORD
LoadCursorA
PROTO :DWORD,:DWORD
RegisterClassExA
PROTO :DWORD
CreateWindowExA
PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD,
:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
ShowWindow
PROTO :DWORD,:DWORD
UpdateWindow
PROTO :DWORD
GetMessageA
PROTO :DWORD,:DWORD,:DWORD,:DWORD
TranslateMessage
PROTO :DWORD
DispatchMessageA
PROTO :DWORD
PostQuitMessage
PROTO :DWORD
Page 1

DefWindowProcA
ExitProcess
MessageBoxA
DestroyWindow
SendMessageA
CreateRectRgn
CreateEllipticRgn
CombineRgn
SetWindowRgn
LoadBitmapA

PROTO
PROTO
PROTO
PROTO
PROTO
PROTO
PROTO
PROTO
PROTO
PROTO

td_win32asm_030.asm
:DWORD,:DWORD,:DWORD,:DWORD
:DWORD
:DWORD,:DWORD,:DWORD,:DWORD
:DWORD
:DWORD,:DWORD,:DWORD,:DWORD
:DWORD,:DWORD,:DWORD,:DWORD
:DWORD,:DWORD,:DWORD,:DWORD
:DWORD,:DWORD,:DWORD,:DWORD
:DWORD,:DWORD,:DWORD
:DWORD,:DWORD

;==============================================================================
; .const = the constants area starts here,constants are defined and fixed
;-----------------------------------------------------------------------------.const
; - Parameter MAIN WINDOW CallBack Procedure ( API=RegisterClassExA ) WP1_CallBack
equ [ebp+4]
;return address
WP1_hWnd
equ [ebp+8]
;handle of window who receives message
WP1_uMsg
equ [ebp+12]
;the message number
WP1_wParam
equ [ebp+16]
;extra info about the message
WP1_lParam
equ [ebp+20]
;extra info about the message
;==============================================================================
; .Data = the data area starts here, datas are defined but not fixed
;-----------------------------------------------------------------------------.Data
IconName
db "TDIcon",0
;icon name in rc file
ClassName
db "TDWinClass",0
;name of windows class
WindowName
db "Test Department",0
;window name titel bar
Bu00_ClassName
db "BUTTON",0
;predefined ClassName !!!
Bu01_WindowName
db "DPB",0
;button text
MB1Titel
db "Message Box",0
;message box name
MB1Text
db "Button in a masked main window clicked",0
align 4
button100_Ypos
button100_Xpos
button100_height
button100_width

dd
dd
dd
dd

010h
009h
036h
054h

button101_Ypos
button101_Xpos
button101_height
button101_width

dd
dd
dd
dd

056h
010h
02Bh
04Ah

button102_Ypos
button102_Xpos
button102_height
button102_width

dd
dd
dd
dd

08Fh
01Bh
035h
035h

button100_hWnd
button101_hWnd
button102_hWnd

dd 0h
dd 0h
dd 0h
Page 2

td_win32asm_030.asm
align 4
; - WndClassEx Structure ( API=RegisterClassExA ) cbSize
dd 0h
;size in bytes of this structure
style
dd 0h
;window style
lpfnWndProc
dd 0h
;address of user proc function
cbclsExtra
dd 0h
;extra bytes to allocate set to 0
cbWndExtra
dd 0h
;extra bytes class directive, rc file
hInstance
dd 0h
;program handle(API=GetModuleHandleA)
hIcon
dd 0h
;handle of icon (API=LoadIconA)
hcursor
dd 0h
;handle of cursor (API=LoadCursor)
hbrBackground
dd 0h
;background color, 0=transparent
lpszMenuName
dd 0h
;name of menu class in resource file
lpszClassName
dd 0h
;name of windows this window class
hIconSm
dd 0h
;iconhandle 0=search in resource file
align 4
; - Msg Structure ( API=GetMessageA ) - member POINT = POINT structure
hWnd
dd 0h
;handle of window who receives message
message
dd 0h
;the message number
wParam
dd 0h
;extra info about the message
lParam
dd 0h
;extra info about the message
time
dd 0h
;time the message was posted
xpt
dd 0h
;cursor x-position, POINT struc
ypt
dd 0h
;cursor x-position, POINT struc
;==============================================================================
; .Data? = the data? area starts here, not defined and not fixed
;-----------------------------------------------------------------------------.data?
temp
dd ?
;temporary used
; - RECT Structure (main window client area) rc_main_left
dd ?
;RECT,x-coordinate
rc_main_top
dd ?
;RECT,y-coordinate
rc_main_right
dd ?
;RECT,x-coordinate
rc_main_bottom
dd ?
;RECT,y-coordinate

upper-left corner
upper-left corner
lower-right corner
lower-right corner

;==============================================================================
; .CODE = our code area starts here
Main=label of our program code
;-----------------------------------------------------------------------------.Code
Main:
;==============================================================================
; Always get your program ID first (API=GetModuleHandleA)
;-----------------------------------------------------------------------------push
0h
;lpModuleHandle, 0=get program handle
call
GetModuleHandleA
;- API Function mov
hInstance,eax
;return value in eax=handle of program
;==============================================================================
; The API function "RegisterClassExA" registers a window class
Page 3

td_win32asm_030.asm
; This API needs a "WNDCLASSEX" structure so we fill it with correct values
;-----------------------------------------------------------------------------mov
cbSize,30h
;size in bytes of WNDCLASSEX structure
mov
style,3h
;window style
mov
lpfnWndProc,OFFSET WP1
;address of user lpfnWndProc function
mov
cbclsExtra,0h
;extra bytes to allocate set to 0
mov
cbWndExtra,0h
;class directive in rc file
mov
hbrBackground,2h
;background,1=background(parameter+1)
mov
lpszMenuName,0h
;menu name in resource file,0=no menu
mov
lpszClassName,OFFSET ClassName ;name of windows class
mov
hIconSm,0h
;iconhandle 0=search in rc file
;-----------------------------------------------------------------------------; API "LoadIconA" loads an icon defined in the resource file and store the
; handle in the "WNDCLASSEX" structure
;-----------------------------------------------------------------------------push
OFFSET IconName
;icon-string or icon resource id
push
hInstance
;our program handle
call
LoadIconA
;- API Function mov
hIcon,eax
;handle of newly loaded icon
;-----------------------------------------------------------------------------; API "LoadCursorA" loads a default system cursor, in this case we must set
; hInstance to 0 and lpCursorName to a default system cursor value, here 32512
; Then we store the cursor handle in the "WNDCLASSEX" structure
;-----------------------------------------------------------------------------push
32512
;lpCursorName,default value in dezimal
push
0h
;hInstance, 0=default system cursor
call
LoadCursorA
;- API Function mov
hcursor,eax
;handle of the cursor
;-----------------------------------------------------------------------------; Now, after filled the "WNDCLASSEX" structure we call API "RegisterClassEx"
;-----------------------------------------------------------------------------push
OFFSET cbSize
;pointer to WNDCLASSEX structure
call
RegisterClassExA
;- API Function ;==============================================================================
; API "CreateWindowExA" creates an overlapped, pop-up, or child window with an
; extended style. The return value in EAX is the handle of the new window.
; This API sends a WM_CREATE message to the window procedure (WP1).
;-----------------------------------------------------------------------------push
0h
;lpParam, extra pointer data 0=no data
push
hInstance
;hInstance, handle of our program
push
0h
;hMenu, handle window menu 0=class menu
push
0h
;hWndParent, handle parent window 0=no
push
00000100h
;intnHeight, window height pixel
push
00000070h
;intnWidth, window width pixel
push
00000080h
;inty, vertical position window
push
00000200h
;intx, horizontal position window
push
82080000h;04CA0000h
;dwStyle, look into WIN32.HLP
push
OFFSET WindowName
;lpWindowName, pointer to window name
push
OFFSET ClassName
;lpClassName, pointer to class name
push
0h;0300h
;dwExStyle, extra window style 0=no
call
CreateWindowExA
;- API Function mov
hWnd,eax
;hwnd,return value=handle of window
Page 4

td_win32asm_030.asm
;==============================================================================
; API "ShowWindow" function sets the specified window's show state.
;-----------------------------------------------------------------------------push
1h
;nCmdShow, show state 1=SW_SHOWNORMAL
push
hWnd
;hwnd, handle of window
call
ShowWindow
;- API Function ;==============================================================================
; API "UpdateWindow" updates the area of the specified window by sending a
; WM_PAINT message to the window if the window's update region is not empty.
;-----------------------------------------------------------------------------push
hWnd
;hwnd, handle of window
call
UpdateWindow
;- API Function ;==============================================================================
; API "GetMessageA" retrieves a message & places it in the specified structure.
;-----------------------------------------------------------------------------LoopGetMessage:
push
0h
;wMsgFilterMax, highest message value
push
0h
;wMsgFilterMin, lowest message value
push
0h
;hWnd, handle of window who gets msg.
push
OFFSET hWnd
;lpMsg, pointer to MSG structure
call
GetMessageA
;- API Function cmp
eax,0h
;check if return value=0 (exit)
je
ExitPrg
;if return value is 0 goto LABEL
;==============================================================================
; API "TranslateMessage" translates key code into ASCII character messages
;-----------------------------------------------------------------------------push
OFFSET hWnd
;lpMSG, pointer to msg structure
call
TranslateMessage
;- API Function - keyboard code
;==============================================================================
; API "DispatchMessageA" function dispatches a message to a window procedure.
;-----------------------------------------------------------------------------push
OFFSET hWnd
;lpMSG, pointer to msg structure
call
DispatchMessageA
;- API Function jmp
LoopGetMessage
;check for message again, goto LABEL
;==============================================================================
; Next we terminate our program (API=ExitProcess)
;-----------------------------------------------------------------------------ExitPrg:
push
hInstance
;push our programm handle to exit
call
ExitProcess
;- API Function ;##############################################################################
; This is the Window Procedure lpfnWndProc (API=RegisterClassExA) for this
; registered window.
; The WindowProc function is an application-defined callback function that
; processes messages sent to a window.
; Here our code for checking the receiving messages resist.
Page 5

td_win32asm_030.asm
; In the future it is the main work for us to react to the recieved messages.
; It is also a good idea to PUSHAD all register, because than we are free to
; use all register in this window procedure.
; Before we leave this subroutine we must POPAD them back.
;-----------------------------------------------------------------------------WP1:
push
ebp
;create stack frame
mov
ebp,esp
;
pushad
;push all register to the stack
mov
eax,WP1_uMsg
;move the message number to eax
;==============================================================================
; WM_CREATE (value=01h) message received ?
;-----------------------------------------------------------------------------WP1_uMsg_01h:
cmp
eax,1h
;check if WM_CREATE message recieved
jne
WP1_uMsg_02h
;if not goto label
;-----------------------------------------------------------------------------; API "GetClientRect" retrieves the coordinates of a window's client area.
;-----------------------------------------------------------------------------;push
OFFSET rc_main_left
;lpRect, address struc. client coordinates
;push
WP1_hWnd
;hwnd, handle of window
;call
GetClientRect
;- API Function ;-----------------------------------------------------------------------------; In this case API "CreateWindowExA" creates a child window with a predefined
; window class name for example BUTTON, LISTBOX, EDITBOX ... ( here BUTTON ! )
; Parameter dwStyle defines the button: BS_DEFPUSHBUTTON (1) OR BS_BITMAP (80h)
; dwStyle defines also WS_VISIBLE ( 10000000h ) OR WS_CHILD ( 40000000h )
; Don't forget to take a look into WIN32.HLP ( CreateWindow ) and Windows.inc.
; In hMenu we PUSH the ID of the child window ( a value of your your choice )
; The return value in EAX is the handle of the new child window.
;-----------------------------------------------------------------------------push
0h
;lpParam, extra pointer data 0=no data
push
hInstance
;hInstance, handle of our program
push
0100h
;hMenu, the child-window ID
push
WP1_hWnd
;hWndParent, handle parent window 0=no
push
button100_height
;intnHeight, window height pixel
push
button100_width
;intnWidth, window width pixel
push
button100_Ypos
;inty, vertical position window
push
button100_Xpos
;intx, horizontal position window
push
50000080h
;dwStyle, button style
push
OFFSET Bu01_WindowName
;lpWindowName, pointer to window name
push
OFFSET Bu00_ClassName
;lpClassName, pointer to class name
push
0h
;dwExStyle,
call
CreateWindowExA
;- API Function mov
button100_hWnd,eax
;return value=handle of window
;-----------------------------------------------------------------------------; API "LoadBitmapA" loads a bitmap from the resource file
;-----------------------------------------------------------------------------push
80h
;lpBitmapName, bitmap resource ID
push
hInstance
;hInstance, handle of modul instance
call
LoadBitmapA
;- API Function ;-----------------------------------------------------------------------------Page 6

td_win32asm_030.asm
; API "SendMessageA" sends a message to the Window Procedure lpfnWndProc
;-----------------------------------------------------------------------------push
eax
;lParam, handle of bitmap
push
0h
;wParam, first message ( IMAGE_BITMAP )
push
0F7h
;uMsg, message to send ( BM_SETIMAGE )
push
button100_hWnd
;hwnd, handle of destination window
call
SendMessageA
;- API Function ;-----------------------------------------------------------------------------; API "CreateWindowExA" creates the second button
;-----------------------------------------------------------------------------push
0h
;lpParam, extra pointer data 0=no data
push
hInstance
;hInstance, handle of our program
push
0101h
;hMenu, the child-window ID
push
WP1_hWnd
;hWndParent, handle parent window 0=no
push
button101_height
;intnHeight, window height pixel
push
button101_width
;intnWidth, window width pixel
push
button101_Ypos
;inty, vertical position window
push
button101_Xpos
;intx, horizontal position window
push
50000080h
;dwStyle, button style
push
OFFSET Bu01_WindowName
;lpWindowName, pointer to window name
push
OFFSET Bu00_ClassName
;lpClassName, pointer to class name
push
0h
;dwExStyle,
call
CreateWindowExA
;- API Function mov
button101_hWnd,eax
;return value=handle of window
;-----------------------------------------------------------------------------; API "LoadBitmapA" loads a bitmap from the resource file
;-----------------------------------------------------------------------------push
81h
;lpBitmapName, bitmap resource ID
push
hInstance
;hInstance, handle of modul instance
call
LoadBitmapA
;- API Function ;-----------------------------------------------------------------------------; API "SendMessageA" sends a message to the Window Procedure lpfnWndProc
;-----------------------------------------------------------------------------push
eax
;lParam, handle of bitmap
push
0h
;wParam, first message ( IMAGE_BITMAP )
push
0F7h
;uMsg, message to send ( BM_SETIMAGE )
push
button101_hWnd
;hwnd, handle of destination window
call
SendMessageA
;- API Function ;-----------------------------------------------------------------------------; API "CreateWindowExA" creates the third button
;-----------------------------------------------------------------------------push
0h
;lpParam, extra pointer data 0=no data
push
hInstance
;hInstance, handle of our program
push
0102h
;hMenu, the child-window ID
push
WP1_hWnd
;hWndParent, handle parent window 0=no
push
button102_height
;intnHeight, window height pixel
push
button102_width
;intnWidth, window width pixel
push
button102_Ypos
;inty, vertical position window
push
button102_Xpos
;intx, horizontal position window
push
50000080h
;dwStyle, button style
push
OFFSET Bu01_WindowName
;lpWindowName, pointer to window name
push
OFFSET Bu00_ClassName
;lpClassName, pointer to class name
push
0h
;dwExStyle,
Page 7

td_win32asm_030.asm
call
CreateWindowExA
;- API Function mov
button102_hWnd,eax
;return value=handle of window
;-----------------------------------------------------------------------------; API "LoadBitmapA" loads a bitmap from the resource file
;-----------------------------------------------------------------------------push
82h
;lpBitmapName, bitmap resource ID
push
hInstance
;hInstance, handle of modul instance
call
LoadBitmapA
;- API Function ;-----------------------------------------------------------------------------; API "SendMessageA" sends a message to the Window Procedure lpfnWndProc
;-----------------------------------------------------------------------------push
eax
;lParam, handle of bitmap
push
0h
;wParam, first message ( IMAGE_BITMAP )
push
0F7h
;uMsg, message to send ( BM_SETIMAGE )
push
button102_hWnd
;hwnd, handle of destination window
call
SendMessageA
;- API Function ;-----------------------------------------------------------------------------; Here we create and combine our regions, here you mask the main window !
;-----------------------------------------------------------------------------mov
eax,button100_Ypos
;calculate y-coord lower-right corner
add
eax,button100_height
push
eax
;nBottomRect, y-coord lower-right corner
mov
eax,button100_Xpos
;calculate x-coord lower-right corner
add
eax,button100_width
push
eax
;nRightRect,x-coord lower-right corner
push
button100_Ypos
;nTopRect,y-coord upper-left corner
push
button100_Xpos
;nLeftRect,x-coord upper-left corner
call
CreateRectRgn
;- API Function mov
temp,eax
;store handle in temp
;-----------------------------------------------------------------------------mov
eax,button101_Ypos
;calculate y-coord lower-right corner
add
eax,button101_height
push
eax
;nBottomRect,y-coord lower-right corner
mov
eax,button101_Xpos
;calculate x-coord lower-right corner
add
eax,button101_width
push
eax
;nRightRect,x-coord lower-right corner
push
button101_Ypos
;nTopRect,y-coord upper-left corner
push
button101_Xpos
;nLeftRect,x-coord upper-left corner
call
CreateRectRgn
;- API Function ;-----------------------------------------------------------------------------call
My_CombineRgn
;- SUBROUTINE ;-----------------------------------------------------------------------------mov
eax,button102_Ypos
;calculate y-coord lower-right corner
add
eax,button102_height
sub
eax,6
push
eax
;y-coordinate of the lower-right corner
mov
eax,button102_Xpos
;calculate x-coord lower-right corner
add
eax,button102_width
sub
eax,6
push
eax
;x-coordinate of the lower-right corner
mov
eax,button102_Ypos
add
eax,6
push
eax
;y-coordinate of the upper-left corner
Page 8

td_win32asm_030.asm
mov
eax,button102_Xpos
add
eax,6
push
eax
;x-coordinate of the upper-left corner
call
CreateEllipticRgn
;- API Function ;-----------------------------------------------------------------------------call
My_CombineRgn
;- SUBROUTINE ;-----------------------------------------------------------------------------; API "SetWindowRgn" sets the region defined above to our main window
;-----------------------------------------------------------------------------push
1h
;bRedraw, window redraw flag
push
temp
;hRgn, handle to region
push
WP1_hWnd
;hWnd, handle of window
call
SetWindowRgn
;- API Function jmp
WP1_return
;
;==============================================================================
; WM_DESTROY (value=02h) message received ?
;-----------------------------------------------------------------------------WP1_uMsg_02h:
cmp
eax,2h
;check if value=2h (WM_DESTROY)
jne
WP1_uMsg_111h
;if not 2h go to LABEL
call
My_CleanSystem
;- SubRoutine ;-----------------------------------------------------------------------------; API "PostQuitMessage" indicates to Windows a request to terminate
;-----------------------------------------------------------------------------push
0h
;nExitCode, exit code=wParam
call
PostQuitMessage
;- API Function popad
;pop all register back from stack
xor
eax,eax
;set eax to 0 to exit our program
mov
esp,ebp
;delete stack frame
pop
ebp
;
ret
10h
;return and clear stack
;==============================================================================
; WM_COMMAND (value=111h) message recieved ?
;-----------------------------------------------------------------------------WP1_uMsg_111h:
cmp
eax,111h
;check if WM_COMMAND message recieved
jne
WP1_uMsg_112h
;if not goto label
;-----------------------------------------------------------------------------; Check extra message child windows, button (DEFPUSHBUTTON=0100h-102h) clicked
;-----------------------------------------------------------------------------mov
eax,WP1_wParam
;
cmp
ax,0102h
;ID of first button
jne
ButtonMessage
;if bolow 0102h goto LABEL
ButtonExit:
;-----------------------------------------------------------------------------; API "DestroyWindow" function destroys the given window
;-----------------------------------------------------------------------------push
WP1_hWnd
;hwnd, handle of window to destroy
call
DestroyWindow
;- API Function jmp
WP1_return
Page 9

td_win32asm_030.asm
ButtonMessage:
cmp
ax,0100h
;ID of first button
jb
WP1_return
;if bolow 0100h goto LABEL
cmp
ax,101h
;ID of last button
ja
WP1_return
;if above 0102h goto label
;-----------------------------------------------------------------------------; API "MessageBoxA" creates a message box, we can only click OK
;-----------------------------------------------------------------------------push
0h
;uType, style, 0=MB_OK Button
push
OFFSET MB1Titel
;lpCaption,pointer to title text
push
OFFSET MB1Text
;lpText,pointer to text message box
push
WP1_hWnd
;handle of owner window 0=no owner
call
MessageBoxA
;- API Function jmp
WP1_return
;
;==============================================================================
; WM_SYSCOMMAND (value=112h) message recieved ?
;-----------------------------------------------------------------------------WP1_uMsg_112h:
cmp
eax,112h
;check if WM_COMMAND message recieved
jne
WP1_return
;if not goto label
mov
eax,WP1_wParam
;extra info about the message
cmp
eax,0F060h
;SC_CLOSE=0F060h received ?
jne
WP1_return
;
call
My_CleanSystem
;- SubRoutine jmp
WP1_return
;==============================================================================
; API "DefWindowProcA" calls the window procedure to provide default processing
; for any window messages that an application does not process.
; This function ensures that every message is processed.
; It is called with the same parameters received by the window procedure.
;-----------------------------------------------------------------------------WP1_return:
popad
;pop all register from stack
push
WP1_lParam
;extra info about the message
push
WP1_wParam
;extra info about the message
push
WP1_uMsg
;the message number
push
WP1_hWnd
;handle of window who receives message
call
DefWindowProcA
;- API Function mov
esp,ebp
;delete stack frame
pop
ebp
;
ret
10h
;return and clear stack
;##############################################################################
;******************************************************************************
; My own subroutine(s) for a compacter code resist here ...
;-----------------------------------------------------------------------------My_CleanSystem:
ret
My_CombineRgn:
Page 10

td_win32asm_030.asm
;-----------------------------------------------------------------------------; API "CombineRgn" combines two regions and stores the result in a third region
;-----------------------------------------------------------------------------push
RGN_OR
;fnCombineMode, region combining mode
push
eax
;hrgnSrc2, handle of source region
push
temp
;hrgnSrc1, handle of source region
push
temp
;hrgnDest, handle of destination region
call
CombineRgn
;- API Function ret
;
;******************************************************************************
;==============================================================================
; end Main = end of our program code
;-----------------------------------------------------------------------------end Main
;end of our program code, entry point
;==============================================================================
; To create the exe file use this commands with your Microsoft Assembler/Linker
;-----------------------------------------------------------------------------; ml.exe /c /coff td_win32asm_030.asm
;asm command
; rc.exe /v rsrc.rc
;rc command
; cvtres.exe /machine:ix86 rsrc.res
; link.exe /subsystem:windows td_win32asm_030.obj rsrc.obj ;link command
;==============================================================================

Page 11

You might also like