C#中调用C++DLL提示"无法加载 DLL“proRFL.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。

[DllImport("proRFL.dll", CallingConvention = CallingConvention.StdCall)]
public xtern static int initializeUSB(byte d12);
C++原型:int __stdcall initializeUSB(uchar d12)

第1个回答  2024-01-16
先确认这个动态库是否存在,若是存在proRFL.dll,那可能是这个动态库里调用了其他库,然后没找到,就会引发这个问题,用depends工具检查一下
大家正在搜