Ok, I'm writing a generic viewer for my custom controls but I'm a little stuck ...
The problem is that I don't know how to call a function which I obtained the location of with GetProcAddress() ...
I gathered that was correct, but how do I now call InitProc and pass a variable (in this case it's GetModuleHandle(NULL) ...Code:FreeLibrary(lib); lib = LoadLibrary(fpath); FARPROC InitProc = GetProcAddress(lib,"InitClass");
Cheers,
Michael.



LinkBack URL
About LinkBacks


