看板 C_Sharp 關於我們 聯絡資訊
※ 引述《cole945 (躂躂..)》之銘言: : ※ 引述《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: 122.118.162.234
cole945:型別不一致是哪型別不一致 @.@? 02/22 23:42