Actually if we use __declspec(dllexport) alone, then compiler will do name mangling, so we have to use extern "C" also to create a perfect C-DLL
An alternative to export functions from DLL is to write a DEF file.
Say you are having Fun_1(), Fun_2(), then you can create a DEF file in V.Studio by
Add "New Item --> code --> Module-definition dile (.def)"
Inside the def file:
LIBRARY CDLL
EXPORT
Fun_1
Fun_2
This will export Fun_1 & Fun_2 without name mangling.