Àññåìáëåð è Win32


Ôàéëû, íåîáõîäèìûå äëÿ ïåðâîãî ïðèìåðà


Ôàéë êîíñòàíò ðåñóðñîâ resource.inc

IDD_DIALOG    =      65     ; 101

IDR_NAME      =      3E8    ; 1000

IDC_STATIC    =      -1

Ôàéë çàãîëîâêîâ resource.h

#define IDD_DIALOG                      101

#define IDR_NAME                        1000

#define IDC_STATIC                      -1

Ôàéë îïðåäåëåíèé dlg.def

NAME          TEST

DESCRIPTION   'Demo dialog'

EXETYPE              WINDOWS

EXPORTS              DlgProc                    @1



Ôàéë êîìïèëÿöèè makefile

#   Make file for Demo dialog

#       make -B

NAME   = dlg

OBJS   = $(NAME).obj

DEF    = $(NAME).def

RES    = $(NAME).res

TASMOPT=/m3 /mx /z /q /DWINVER=0400 /D_WIN32_WINNT=0400

!if $d(DEBUG)

TASMDEBUG=/zi

LINKDEBUG=/v

!else

TASMDEBUG=/l

LINKDEBUG=

!endif

!if $d(MAKEDIR)

IMPORT=$(MAKEDIR)\..\lib\import32

!else

IMPORT=import32

!endif

$(NAME).EXE: $(OBJS) $(DEF) $(RES)

       tlink32 /Tpe /aa /c $(LINKDEBUG) $(OBJS),$(NAME),, $(IMPORT), $(DEF), $(RES)

.asm.obj:

       tasm32 $(TASMDEBUG) $(TASMOPT) $&.asm

$(RES): $(NAME).RC

       BRCC32 -32 $(NAME).RC



Ñîäåðæàíèå ðàçäåëà