[英]C# equivalent HGlobal Pascal
I'm converting the pascal interface into C#. 我正在将pascal接口转换为C#。 What is the C# equivalent of the
HGlobal
data type? HGlobal
数据类型的C#等效项是什么?
type
SomeFunction= function(var global : HGlobal) : integer; cdecl;
How would SomeFunction
be declared in C#? 如何在C#中声明
SomeFunction
?
What is the C# equivalent of the
HGlobal
data type?HGlobal
数据类型的C#等效项是什么?
The equivalent type is IntPtr
. 等效类型为
IntPtr
。
How would
SomeFunction
be declared in C#?如何在C#中声明
SomeFunction
?
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate int SomeFunction(ref IntPtr global);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.