关于C#调用C++dll文件的异常处理 ——“尝试读取或写入受保护的内存。这通常指示其他内存已损坏。”
【原因1】C++和C#的参数类型对应问题(详细内容参考链接:https://jljlpch.iteye.com/blog/520509)【举例】如C++:bool __declspec(dllimport) getImage(unsigned char** ppImage, int& nWidth, int& nHeight);对应C#成:[DllImport(“tes...
转载
2019-02-22 14:24:54 ·
5652 阅读 ·
0 评论