Reputation: 145
I have a c++
project use openCV
I built my c++
project to a dll file to use in a C#
project, but when I debug the C#
project, it has an error: Unable to load DLL,The specified module could not be found
.
please help me :D
Upvotes: 2
Views: 2131
Reputation: 3440
I assume you are loading the DLL using P/Invoke
. Make sure OpenCV's
dll's location is in your search path (the Path
environment variable on 64 bit Windows 7) or that the dll and all of its dependencies are in the same directory as your managed executable. That directory is usually the bin\Release
or bin\Debug
directory.
Upvotes: 3