The following code compiles just fine, but returns
the following error message:
"The procedure entry point ENUMWINDOWS could not be
located in the dynamic link library USER32.DLL."
Any Ideas?
Running Windows 2000 and PB/DLL 5.0
Same code runs great under VB
Checked with Depends and found the entry point for the function
$COMPILE EXE "c:\test.exe"
$INCLUDE "WIN32API.INC"
FUNCTION WinMain (BYVAL CurInst AS LONG, BYVAL PrvInst AS LONG, CmdLine AS ASCIIZ PTR, BYVAL CmdShow AS LONG) EXPORT AS LONG
Dim RV as Long
RV = EnumWindows(CODEPTR(EnumWindowsProc), 0)
END FUNCTION
FUNCTION EnumWindowsProc(BYVAL lHandle AS LONG, BYVAL lNotUsed AS LONG) AS LONG
EnumWindowsProc = 1
END FUNCTION
My WIN32API.INC has the following declaration for the function:
DECLARE FUNCTION EnumWindows LIB "USER32.DLL" ALIAS "EnumWindows" (BYVAL lpEnumFunc AS LONG, BYVAL lParam AS LONG) AS LONG
Thanks,
Ben Rathbone
the following error message:
"The procedure entry point ENUMWINDOWS could not be
located in the dynamic link library USER32.DLL."
Any Ideas?
Running Windows 2000 and PB/DLL 5.0
Same code runs great under VB
Checked with Depends and found the entry point for the function
$COMPILE EXE "c:\test.exe"
$INCLUDE "WIN32API.INC"
FUNCTION WinMain (BYVAL CurInst AS LONG, BYVAL PrvInst AS LONG, CmdLine AS ASCIIZ PTR, BYVAL CmdShow AS LONG) EXPORT AS LONG
Dim RV as Long
RV = EnumWindows(CODEPTR(EnumWindowsProc), 0)
END FUNCTION
FUNCTION EnumWindowsProc(BYVAL lHandle AS LONG, BYVAL lNotUsed AS LONG) AS LONG
EnumWindowsProc = 1
END FUNCTION
My WIN32API.INC has the following declaration for the function:
DECLARE FUNCTION EnumWindows LIB "USER32.DLL" ALIAS "EnumWindows" (BYVAL lpEnumFunc AS LONG, BYVAL lParam AS LONG) AS LONG
Thanks,
Ben Rathbone
Comment