@jochen
how does your "Exist Macro" run on masm32
i have found two of your macro samples but i cant make them work on masm32:
1. This is from 2008
EXIST MACRO fname:REQ, DiscardHandle:=<1>
invoke FindFirstFile, reparg(<fname>), addr wfd
.if eax==INVALID_HANDLE_VALUE
xor eax, eax
.elseif DiscardHandle
invoke FindClose, eax
.endif
EXITM <eax>
ENDM
This is from MasmBasic.inc, but i cant find "MbExistP"
Exist MACRO fname:REQ, DiscardHandle:=<1>
LOCAL tmp$
ifidn <fname>, <( EdX)>
tmp$ CATSTR <## Warning line >, %@Line, <: use wRes$ with Unicode resources ##>
% echo tmp$
push DiscardHandle or 2
else
push DiscardHandle or 0
endif
if afnUC
afnUC=0
LastFileDosName$ EQU offset wfd.cAlternateFileName
else
LastFileDosName$ EQU offset wfd[WIN32_FIND_DATA.cAlternateFileName]
endif
if @InStr(1, <fname>, <+>)
push Cat$(fname)
else
push repargA(fname)
endif
call MbExistP
EXITM <!Zero?>
ENDM