Hi,
i need to have declare several versions of an api
function/sub like this.
PB will not compile, and returns error 466.
Is there any workaround?
#COMPILE EXE
DECLARE FUNCTION MoveMemory LIB "KERNEL32.DLL" ALIAS "RtlMoveMemory" (lpDest AS ANY, lpSource AS ANY, BYVAL cbMove AS LONG) AS LONG
DECLARE SUB ZeroMemory LIB "KERNEL32" ALIAS "RtlMoveMemory" (BYVAL lpDest AS LONG, BYVAL numBytes AS LONG)
FUNCTION PBMAIN
END FUNCTION
------------------
i need to have declare several versions of an api
function/sub like this.
PB will not compile, and returns error 466.
Is there any workaround?
#COMPILE EXE
DECLARE FUNCTION MoveMemory LIB "KERNEL32.DLL" ALIAS "RtlMoveMemory" (lpDest AS ANY, lpSource AS ANY, BYVAL cbMove AS LONG) AS LONG
DECLARE SUB ZeroMemory LIB "KERNEL32" ALIAS "RtlMoveMemory" (BYVAL lpDest AS LONG, BYVAL numBytes AS LONG)
FUNCTION PBMAIN
END FUNCTION
------------------
Comment