※ 引述《AdamHsu (AdamHsu)》之銘言:
: [DllImport(dllName, CharSet = CharSet.Ansi, CallingConvention =
: CallingConvention.Cdecl)]
: public static unsafe extern Int32 query_ex(void* session_handle,
: ref Int32 TStatus, UInt32 Type, message* Buffer,
: sbyte BFlag, void* RBuffer, ref UInt32 RBuffer_Length,
這裡改成 IntPtr
: ref UInt32 TID, ref UInt32 ORID);
: // 以下是RBuffer使用前的處裡,其他部分的參數礙於篇幅先行掠過
: IntPtr ptr1 = Marshal.AllocHGlobal(64000);
傳的時候直接用 ptr1 傳試試吧~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.139.133.162