In my dll there is a method that I want to export.
//Works:
extern \"C\" __declspec(dllexport)
//Wont work
__declsp
The compiler normally decorates your exported names to include information about class and signature. extern "C" tells the compiler not to do that.
extern "C"