my Labview is 32-bit , so I generated 32-bit libs of Opencv using the link
i have written a code of open camera using Opencv and dll got successfully generated , but when i'am trying to use it in labview i get error saying "dll is not loaded or dll fails to load " is there something I'am missing.
Solved! Go to Solution.
What Visual Studio version did you use to create the DLL? Do you try to run the LabVIEW project that access the DLL on the same computer as you created your DLL on in Visual Studio?
If not, did you make sure to create a release version of the DLL, not a debug version? The debug version of DLLs needs the debug version of Visual Studio C runtime installed and the only legal way to get that installed on a computer is to install the according Visual Studio IDE.
Visual Studio : 2022 Current Version 17.5.3,
dll and Labview are in separate computer
i have tried in both release version and debug version both it fails.
Debug will ALWAYS fail if you try to run it on a different computer than on which you have Visual Studio installed. For a release DLL you still need to have the according Microsoft Visual C Runtime library installed on the target computer. Since you use Visual Studio 2022 it requires also pretty much the latest version of that. If your Windows version hasn't been fully upgraded to the latest Windows release, it likely will have an older version of it installed.
You can use Dependencies to open the library on the target computer to see what other library might be missing.
It is also possible that the target CPU lacks support for some instructions used in the dll. Atom does not support AVX, for example.