08-16-2022 02:35 PM
cvi_db.h references several external functions that appear to be SQL. What library does it reference and where do I find a copy?
08-17-2022 01:50 AM - edited 08-17-2022 01:52 AM
cvi_db.h actually IS the include file for the SQL toolkit!
This piece of software is included in the full version of the CVI IDE and cannot be purchased separately for the base version of CVI as you can see in this comparison table
If you have a license for the full edition you should already have the toolkit installed, if not perform a custom setup of CVI to add the toolkit to your present instance of the IDE. If you on the contrary have the base version you cannot use SQL functions by means of this toolkit.
08-17-2022 09:03 AM
Roberto,
cvi_db.h itself is not the issue. It references stuff that is in an outside library, like DBConnect, DBSetAttribureDefault, and other SQL database functions. I need to know what library that is and where it is in the NI distribution so that I can attach it to the DLL I'm building.
08-17-2022 12:26 PM
If you have installed the CVI SQL toolkit and added it to the project, the IDE will be able to locate all needed libraries both when building the DLL and when creating a distribution.
08-17-2022 12:50 PM
I'm not working within CVI. I'm compiling externally in Visual Studio. Therefore I need to know where the library is to include it.
08-18-2022 03:28 PM
Well, I don't know exactly what you are referring to since I do not work with Visual Studio, but the whole SQL toolkit is located in C:\Program Files (x86)\National Instruments\Shared\CVI\Bin and refers to cvi_db.lib which you can find in msvc or msvc64 subfolder. Does this answer your question?
08-18-2022 03:50 PM
I think so. Thanks.