![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DllImport
文章平均质量分 51
鱼跃此时海_花开彼岸天
xx
展开
-
netcore调用C++动态库时异常(DllNotFoundException)
DllImport异常时始终提示找不到文件,实际上是有的.调用接口前修改环境变量可解决以上问题StreamWriter sw = new StreamWriter("test.sh", false, Encoding.ASCII);sw.WriteLine("sed -i '/Lib/vvsec_centosx64_pcie/d' /etc/ld.so.conf");var path = Directory.GetCurrentDirectory();sw.WriteLine($...原创 2021-10-21 11:19:54 · 2498 阅读 · 0 评论 -
netcore调用(DllImport)C++库的接口(Linux和Windows)
windows库引用dll文件 public static class VVSecurity_win32 { private const string dllName = "Lib/vvsec_win32/VVSecurity.dll"; /// <summary> /// 初始化 /// </summary> /// <param name="pDevice">句柄&l.原创 2021-10-21 11:46:30 · 4691 阅读 · 0 评论