I am designing a plug-in interface for a program. I can get the driver program to load the plug-in but when I try to access a function the function pointer value is NULL. I've gotten this to work using extern "C" but that will not do for this application because polymorphism will be used extensively. I know it is possible to do plug-ins with a C++ interface but I don't know how and thus far the internet has been less than useful.

I've also tried to access the functions via their mangled names but that didn't work either.

I am using Microsoft Visual C++ 6.0 and am using the LoadLibrary fuction to load a plug-in and GetProcAddress to get the pointers of functions.

Thanks