Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
__declspec(dllexport) public void CallMe(wchar_t *p);
编译后的 dll 将“CallMe”过程重命名为“?CallMe@@ZAPPA_G@Z”。如何防止这种行为?
您需要在定义周围加上 extern "C" { } 块,以避免 C++ 名称混淆。