You need to prefix the function name with
extern "C"
.
Normally an exported function without name mangling would look like this -
extern "C" __declspec(dllexport) int MyFunction(int, int);
The export could also be done using a .DEF file instead of specifying
__declspec(dllexport)
.