I am using Microsoft VC++ 6.0 to create a DLL from the Sample DLL that came with the PRocom plus CD. The DLL was succesfull created withou and warnings or errors.
And I can load the DLL from the ASCPECT script just fine but it always failed after the 'dllcall'. Why????
Thanks for all the help
Here is the code:
proc main
string DLLPATH = "C:\Program Files\Symantec\Procomm Plus\examleDLL\example.dll" ;path to the DLL
dllload DLLPATH hdll ;load the DLL
if (failure)
usermsg "dllload failed"
exit
endif
;******>>>>> It works fine up to here
dllcall hdll "RandomInt" rNum
;****> It failed after this call
if (failure)
usermsg "RandomInt call with system time seed failed"
cleanup()
else
usermsg "RandomInt with system returned %d" rNum
endif
And I can load the DLL from the ASCPECT script just fine but it always failed after the 'dllcall'. Why????
Thanks for all the help
Here is the code:
proc main
string DLLPATH = "C:\Program Files\Symantec\Procomm Plus\examleDLL\example.dll" ;path to the DLL
dllload DLLPATH hdll ;load the DLL
if (failure)
usermsg "dllload failed"
exit
endif
;******>>>>> It works fine up to here
dllcall hdll "RandomInt" rNum
;****> It failed after this call
if (failure)
usermsg "RandomInt call with system time seed failed"
cleanup()
else
usermsg "RandomInt with system returned %d" rNum
endif