【发布时间】:2013-12-24 10:34:33
【问题描述】:
我正在使用 DUMPBIN 实用程序从 c++ dll 中获取损坏的名称以在 c# 应用程序中使用。 我正在使用 __declspec(dllexport) 公开一个 c++ 类成员函数,输出损坏的名称结果如下
?InitPort@CProtocolStack@@QAEEHEPAEKE@Z = ?InitPort@CProtocolStack@@QAEEHEPAEKE@Z (public: unsigned char __thiscall CProtocolStack::InitPort(int,unsigned char,unsigned char *,unsigned long,unsigned char))
在导入相同的函数时,我是否需要在 C# 应用程序中使用全名? 如果不是,那哪一部分足够导入?
【问题讨论】:
-
是一个C++类的实例方法。你不能调用它们,需要一个 C++/CLI 包装器。
标签: c++ dll dllimport dllexport