I think I found a Bug in Windows.inc Line 76

I need for my PRogramm the
masm32.lib and masm32.inc and all includes.
If I input the GetCl command it has this error
if link:
windows.inc(t6) Error A2005: sysbol befinition: CHAR
GetCL do not like windows.inc I think.

.model flat, stdcall
option casemap:none

include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
include \masm32\include\comdlg32.inc
include \masm32\include\shell32.inc
include \masm32\include\imagehlp.inc
include \masm32\include\masm32.inc
include \masm32\include\windows.inc

includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
includelib \masm32\lib\comdlg32.lib
includelib \masm32\lib\shell32.lib
includelib \masm32\lib\imagehlp.lib
includelib \masm32\lib\masm32.lib

include resource.inc

MsgCaption db "Iczelion's tutorial no.2",0
MsgBoxText db "Win32 Assembly is Great!",0
FileName db 258 dup (0)
hInstance dd 0
commandLine dd 0
invoke GetModuleHandle, NULL
mov hInstance, eax

invoke GetCommandLine
mov commandLine, eax

invoke GetCL, 1, ADDR FileName
.If eax == 1
invoke MessageBox, NULL,addr FileName, addr MsgCaption, MB_OK
; invoke MessageBox, NULL,addr MsgBoxText, addr MsgCaption, MB_OK
invoke ExitProcess,NULL

end start
Posted on 2003-02-27 07:34:20 by Fred
include windows.inc before the others.


.model flat, stdcall

include \masm32\include\windows.inc ; <- this first
include \masm32\include\kernel32.inc
Posted on 2003-02-27 08:43:28 by Petroizki