c# 引用 c++ dll 参数 指针的指针 类型转换

2025-04-05 18:55:33
推荐回答(1个)
回答1:

[DllImport("xxx.dll")]
public extern static void Create(out IntPtr handle );

[DllImport("xxx.dll")]
public extern static void Initial( IntPtr handle, string szSourceName, string szDecFileName);

[DllImport("xxx.dll")]
public extern static void SetPara( IntPtr handle, IntPtr pDecFileInfo);
-----------------------------------------

权当试试吧