Hi,
please take a look at the following program:
What´s wrong with the string-routines in PBDLL?
API-LastError must not be changed by PBDLL!
(and if there must be an internal function like
VB´s Err.LastDLLError)
Thank you!
------------------
mailto:[email protected][email protected]</A> www.selisoft.com
[This message has been edited by Josef Lindinger (edited November 01, 2000).]
please take a look at the following program:
Code:
#COMPILE EXE "c:\temp\test.exe" #INCLUDE "WIN32API.INC" SUB fctTest(BYVAL s AS STRING) CALL SetLastError(123) END SUB FUNCTION WINMAIN (BYVAL CurInst AS LONG, _ BYVAL PrvInst AS LONG, _ CmdLine AS ASCIIZ PTR, _ BYVAL CmdShow&) EXPORT AS LONG DIM lRet AS LONG DIM sTmp AS STRING sTmp = "" CALL fctTest(sTmp) lRet = GetLastError() MSGBOX STR$(lRet) sTmp = "abc" CALL fctTest(sTmp) lRet = GetLastError() MSGBOX STR$(lRet) END FUNCTION
API-LastError must not be changed by PBDLL!
(and if there must be an internal function like
VB´s Err.LastDLLError)
Thank you!
------------------
mailto:[email protected][email protected]</A> www.selisoft.com
[This message has been edited by Josef Lindinger (edited November 01, 2000).]
Comment