0

我正在尝试使用我没有源代码的第三方 dll。使用 /clr 编译时,我已在 VC++ 中成功使用它。但是,我想在非托管 c++ 应用程序中使用它,而无需使用 /clr 进行编译。当我查看 Visual Studio 对象 bowser 中的 dll 时,我注意到程序集的属性被列为:

Attributes:
System.CLSCompliantAttribute(true),
System.Runtime.InteropServices.ComVisibleAttribute(false),
System.Reflection.AssemblyDelaySignAttribute(false),
System.Reflection.AssemblyKeyNameAttribute(""),
System.Runtime.CompilerServices.SuppressIldasmAttribute,
System.Reflection.AssemblyConfigurationAttribute("Retail"),
System.Diagnostics.DebuggableAttribute(0),
System.Runtime.CompilerServices.RuntimeCompatibilityAttribute,

由于 ComVisible 为假,我无法获取类型库,并且不确定如何在本机 c++ 程序中使用此 dll。有可能做到这一点吗?

4

0 回答 0