[問題] c#使用c++的dll引用的寫法
dll裡的method寫法如下
G▊▊▊▊▊etLibraryDesc( PPC* p11, unsigned char * desc, unsigned long * descLen)
有星號指標跟unsigned
▓
那在c#引用時這樣寫對嗎?需要忽略還是需要加什麼東西?
[DllImportAttribute(@"D:/Myself_web/lib/Test.dll", CharSet = CharSet.Auto, EntryPoint = "GetLibraryDesc")]
public static extern long GetLibraryDesc( PPC p11, char desc, long descLen);
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.251.177.13
推
12/20 15:55, , 1F
12/20 15:55, 1F
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章