Hello,
I think I found a Bug in Windows.inc Line 76
Code:
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.
Code:
.386
.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
.data
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
.code
start:
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
.endif
; invoke MessageBox, NULL,addr MsgBoxText, addr MsgCaption, MB_OK
invoke ExitProcess,NULL
end start
I think I found a Bug in Windows.inc Line 76
Code:
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.
Code:
.386
.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
.data
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
.code
start:
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
.endif
; invoke MessageBox, NULL,addr MsgBoxText, addr MsgCaption, MB_OK
invoke ExitProcess,NULL
end start
include windows.inc before the others.
.386
.model flat, stdcall
include \masm32\include\windows.inc ; <- this first
include \masm32\include\kernel32.inc
etc....