background image
<< Calling External Functions | DLL using the standard sequence >>
<< Calling External Functions | DLL using the standard sequence >>

Loading a DLL—Locally

Creating Vuser Scripts
464
Calling External Functions
Loading a DLL--Locally
You use the lr_load_dll function to load the DLL in your Vuser script. Once the DLL
is loaded, you can call any function defined within the DLL, without having to
declare it in your script.
To call a function defined in a DLL:
1
Use the lr_load_dll function to load the DLL at the beginning of your script. Place
the statement at the beginning of the
vuser_init
section. lr_load_dll replaces the
ci_load_dll function.
Use the following syntax:
lr_load_dll(
library_name
);
Note that for UNIX platforms, DLLs are known as shared libraries. The extension
of the libraries is platform dependent.
2
Call the function defined in the DLL in the appropriate place within your script.