Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with DLL and ASPECT script

Status
Not open for further replies.

tpq

Programmer
Apr 2, 2003
12
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top