How do you avoid name mangling of C++ procedures?
-
16-09-2019 - |
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?
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