Dinesh Rathi
8th October 2008, 12:11
I have used the function load_dll(dllname) to load the dll and execute the function within the dll. But, if i want to use that function with another dll name , then
is it necessary to unload the first loaded dll. If it is necessary then how to unload it?

Plz reply if anybody knows.
thanks in advance

george7a
8th October 2008, 12:22
Hi,

Check this link:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_dll_overview_and_synopsis

Or you can use the keyword "#pragma" instead (this is the standard way - Not the dynamic one ). Example:

#pragma used dll ottdllbw

I hope it helps,

- George

vahdani
10th October 2008, 19:26
Hi Dinesh,

use the "overload" option:

dll_id = load_dll(dll_name, true) |overlad

From Programming Manual:
When DLLs are dynamically linked at runtime, instead of at compile time, function overloading is possible. This means that an external function contained in a loaded DLL can be replaced by overloading another DLL that contains a function with the same name and arguments.

You use the load_dll() function to load DLLs dynamically. When you call this function, you can specify whether the DLL is to be overloaded or not. When searching for an external function called by a program, the bshell always searches in overloaded DLLs first.