typedef int (*getIntPtr)(void); extern "C" __declspec(dllexport) void InvokeFuncPtr(getIntPtr funcPtr) { std::wcout << funcPtr(); }