Step 3 - Opening DLL And Getting Function Pointers
The third step that an application must perform, after asking the user to choose the VDA, is to load the appropriate API DLL and resolve references to the DLL supplied functions. This is accomplished by using the Window API functions, LoadLibrary, GetProcAddress and FreeLibrary . If developing a 32-bit Visual Basic Application, the names defined should be as the Alias in the appropriate Public Declare Function statement. Below is a simple example of loading the DLL and getting pointers to the RP 1210-defined functions using C/C++: