11-05-2007 05:29 PM
11-05-2007
06:43 PM
- last edited on
10-30-2026
01:34 PM
by
Content Cleaner
Hi hendra,
You need to do more than just add the header file to the project. If you are wanting to statically link against the DLL, you need to include the import library (.lib) that is associated with the SetupAPI DLL in the project. Essentially those errors mean that CVI can't find those functions in any linked module.
Check out the FAQ: Using Dynamic Link Libraries with LabWIndows/CVI tutorial for more information.
Also, if you don't have a import library, you can generate one from the header file. See the Creating Import Libraries for a DLL in LabWindows/CVI KnowledgeBase.
Best Regards,
11-06-2007 09:00 AM
11-06-2007 09:12 AM
11-06-2007 12:49 PM
11-06-2007 02:44 PM - edited 11-06-2007 02:44 PM
Hi hendra,
One of my co-workers actually reminded me that SetupAPI.lib is included with the Window SDK that comes with the LabWindows/CVI Full Development System. In order to install it, you have to have purchased the Full Development System of CVI and they have to install the full SDK from the installer feature tree (i.e. its not turned on by default).
The SetupAPI files will be installed into
C:\Program Files\National Instruments\CVI81\sdk\include\SetupAPI.h
C:\Program Files\National Instruments\CVI81\sdk\lib\SetupAPI.Lib
Just thoughts I would update you on that information. Regardless, I would still like to know what errors you might have gotten.
Thanks
Best Regards,
11-06-2007 03:09 PM