討論串[問題] C++ dll傳遞含有char array的struct
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 6→)留言6則,0人參與, 最新作者Litfal (Litfal)時間10年前 (2015/06/10 02:16), 編輯資訊
0
0
0
內容預覽:
using System.Runtime.InteropServices;. // 讓編譯後的成員順序依照指定順序排序. [StructLayout(LayoutKind.Sequential,CharSet=CharSet.Unicode)]. public struct A. {. // 因為是
(還有413個字)

推噓2(2推 0噓 6→)留言8則,0人參與, 最新作者petercoin (彼得幣)時間10年前 (2015/06/05 15:47), 10年前編輯資訊
0
0
0
內容預覽:
我手上有一個C++寫的dll. 現在在C#寫的程式內使用這個dll. 在這個dll內有一個struct. typedef struct _A. {. WCHAR buf[64];. DWORD index;. } A;. 會被當成function的參數傳遞. int funA(A *a). {. a
(還有596個字)
首頁
上一頁
1
下一頁
尾頁