Paul is correct. You need to modify your #define as so:

#define DLLEXPORT extern "C" __declspec( dllexport )

if you want to prevent C++ compiler from mangling the names.