I made a recent post about not being able to load my C++ DLL in a C# application, now having tried to load it in C++ I found I can do so, but am unable to load Get the function pointers from it using GetProcAddress.
This post contains the DLL code which does the exporting of the functions
The output of this is "Cannot load DLL function"
Clearly I'm doing something wrong but I don't think I understand just how DLLs work enough to know what.
Ah yes my function names are mangled, Formatted turned to"_Formatted@0". Thanks kbw, I thought that using extern "C" in the DLL header file stopped the function names from being mangled though, how can I stop it?
I have one more question too. In the DLL header file is a global (but not static) instance of the VGSLib class which is used by the exported functions, this has private members which need to be unique to each application that loads the DLL, I just wanted to make sure that all applications that use the DLL will not be sharing the instance of VGSLib will they?