
Loading functions dynamically from shared libaries?
Justin,
> I was wondering if anyone could give me information on the Visual C++
> functions that correspond to dlopen(), slsym(), dlerror(), dlclose()in
> Unix (SunOS).
dlopen(): LoadLibrary[Ex]()
dlsym(): GetProcAddress() (note: functions only)
dlerror(): not needed; GetProcAddress() only returns NULL on failure
dlclose(): FreeLibrary()
The _init() routine has a rather different counterpart in the function
tagged as the entry point. Normally, that would come from VC++, and
you would supply a DllMain() which gets called on: initial load, final
unload, thread creation, and thread destruction.
Cheers,
Felix.
--
If you post a reply, kindly refrain from emailing it, too.