__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?
__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?
You need an extern "C" { } block around your definitions to avoid the C++ name mangling.