posted 07-11-2002 11:59 AM
You can load a dll file if you know the full path:
load_ddl("yourDLL.dll");
Then let's say that yourDLL.dll contains a function called: "addition(int x, int y)" which returns a integer value.
Then you can define an external function that accesses the above function as follows:
extern int addition(in int, in int); # this is TSL code!
Now whenever you call that function, it should invoke the function in the DLL.....but I could be wrong. You should investigate the User Manual for exact details.
posted 07-13-2002 03:34 AM
Link to example code: 16845538.zip
Example code located at above link for loading a DLL to get access to a function named "GetTickCount()" located in USER32.DLL in the Windows-System directory. The function "GetTickCount()" is used to "seed" the Random Number Generator so you get a more true ranndom number.
DLL files can enhance a test by providing functionality missing from WinRunner!
[This message has been edited by cranem451 (edited 07-20-2002).]