看板
[ C_Sharp ]
討論串[問題] C++ dll傳遞含有char array的struct
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
using System.Runtime.InteropServices;. // 讓編譯後的成員順序依照指定順序排序. [StructLayout(LayoutKind.Sequential,CharSet=CharSet.Unicode)]. public struct A. {. // 因為是
(還有413個字)
內容預覽:
我手上有一個C++寫的dll. 現在在C#寫的程式內使用這個dll. 在這個dll內有一個struct. typedef struct _A. {. WCHAR buf[64];. DWORD index;. } A;. 會被當成function的參數傳遞. int funA(A *a). {. a
(還有596個字)
首頁
上一頁
1
下一頁
尾頁