09-18-2014 12:42 PM
using , #import "mydevice.dll" in VisualC++ ,
I get "Error loading type library/DLL"
I built the DLL & LIB files in CVI 2013 , how do I use them in visual C++
09-19-2014 08:14 AM - edited 09-19-2014 08:16 AM
Hello,
My first instinct is that your project cannot find the DLL. According to this page on MSDN: Search Path Used by Windows to Locate a DLL
Windows will look in the following locations for your DLL:
If your DLL is not in one of these locations, you have two options:
#import "<filepath>\mydevice.dll"
For example: #import "C:\Testing\Myproject.dll"
Hope that helps,
09-19-2014 08:31 AM - edited 09-19-2014 08:31 AM
Hello again,
If that doesn't solve your problem, one other thing you can check is that the Target Settings for your DLL specify a type library: