摘要: using System; using System.Windows.Forms; using System.Runtime.InteropServices;//使用DllImport的必须。 using System.Diagnostics;//引入Process 类 namespace 命名空间 { static class Program { priva... 阅读全文
posted @ 2019-07-11 17:17 三小 阅读(1216) 评论(1) 推荐(1) 编辑
摘要: 由于经常使用C#调用 非托管C++ dll 操作一下硬件,出现传入传出类型的问题,现整理了C++ dll 类型与 C#类型对应关系: //C++中的DLL函数原型为 //extern "C" __declspec(dllexport) bool 方法名一(const char* 变量名1, unsi 阅读全文
posted @ 2019-07-11 16:32 三小 阅读(6616) 评论(0) 推荐(0) 编辑