quote:
Originally posted by RaceProUK
You can use delcspec(dllexport), so long as you also use extern "C". extern "C" disables name mangling for that function.
The trouble with using __declspec(dllexport) with extern "C" is that the function must be __cdecl in order for the symbol to export without any decoration. Why is this a problem? VB requires dll import functions to be __stdcall