C#調用C++ dll代碼

1.新建項目選(Visual C++ ——>windows桌面程序——>動態鏈接庫(DLL))如圖。 (這裏最好不要在其他項目中新建DLL項目否則會後很多未知問題。) 2.打開第一個DIllNewTest.cpp 寫上如下代碼  extern "C" _declspec(dllexport) int  XXXX(int a, int b) {     return a + b; } 2.1   e
相關文章
相關標籤/搜索