如何在DLL中更改过程名称

How to change procedure name in DLL

本文关键字:过程 DLL      更新时间:2023-10-16

当我用我的程序在c++ Builder中编译DLL时

 extern "C" __declspec(dllexport) __cdecl void show_m(void)
{
 MessageBox(NULL, "MSG", "COTI DLL", MB_OK |MB_ICONINFORMATION);
}

我可以在dependencies .exe中看到我的过程的名称是_show_m。如何删除下划线?(重命名dll中的过程)

谢谢

我想我找到解决办法了。在c++ Builder (Code Gear 2009)中,我将FALSE设置为:

Options-> c++ compiler ->Output->在符号名上生成下划线->FALSE

我想我们可以结束话题了