【发布时间】:2014-11-06 08:52:04
【问题描述】:
我需要在最新的 VS2010 c# 项目中引用最旧的 DLL(不是 .Net DLL)。 DLL 文档向我展示了如何使用 ReadObject 函数:
MyDll rc=ReadObject (HEQUIP hEquip, UCHAR uchSegment, UCHAR uchType, 给我们留言首先, USHORT usQty, PUCHAR pValue);
同时展示如何在 VB6 项目中使用:
Declare Function ReadObject Lib "MyDll.dll" (ByVal DriverId As Integer, ByVal uchSegment As Byte, ByVal uchType As Byte, ByVal usFirst As Integer, ByVal usQty As Integer, ByRef pValue As Any) As Integer
谁能解释我如何在 c# 项目中引用 DLL?还有关键字“ByVal”和“ByRef”在 c# 语言上的正确转换是什么? 非常感谢您的任何建议
跳跃者
【问题讨论】:
标签: c# visual-studio-2010 dll