Question

__declspec(dllexport) public void CallMe(wchar_t *p);

The compiled dll renames the "CallMe" procedure to "?CallMe@@ZAPPA_G@Z". How do I prevent this behavior?

Was it helpful?

Solution

You need an extern "C" { } block around your definitions to avoid the C++ name mangling.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top