Problems with dllimport in c# under Windows 7 x32

拈花ヽ惹草 提交于 2019-12-25 02:19:53

问题


Iam having problems with dll import in c#. I created library under windows xp x32 and tried to use it on windows 7 x32. My library is using another libraries called opnecvsharp which uses dllimport to opencv libraries for c++.

Iam sure i added opencv.dlls to the same folder as executable file. I tried to run exe as admin, disable UAC, add path to dll in PATH variable, but none of those helped me.

How I can make my program see dlls ?
The error in picture shows that program doesnt see opencv dll libraries. Opencvsharp provides only dlls and no soruce file so I cannot paste here code how it is imported.


回答1:


Although the error message reports that the opencv_core220 library is missing, you are adamant that it is present in the same directory as the executable. Thus it seems likely that one of the OpenCV dependencies is failing.

The most likely and plausible cause for this is the the Visual C++ redistributable package has not been installed on the target machine.



来源:https://stackoverflow.com/questions/8227298/problems-with-dllimport-in-c-sharp-under-windows-7-x32

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!