02-07-2006 03:43 PM
02-07-2006 04:46 PM
There is not a single source for error codes: they are listed in several include files that you can find in CVI installation.
However, almost every library has a GetXXXErrorString function that can be used to obtain a descriptive explanation of the errors of this library: this is true for RS232, Analisys, NI-DAQ... In toolslib library there is also a GetGeneralErrorString function that conglobates errors from UIR library, toolbox and (if I'm not wrong) formatting library.
Now, while detecting an error you can act at least three ways: for developing purposes it is enough to show the context help for return code or error field parameters in every function panel of CVI libraries: in the help all possible errors are usually listed; or you can open the include file associated with this function panel (there is a specific button in function panel toolbar for this); for user information, you can pass the error code to those GetXXXErrorString and popup a message explaining the error.
02-08-2006 07:39 AM
02-08-2006
07:57 AM
- last edited on
03-24-2025
07:06 PM
by
Content Cleaner
CVI_db.h is a file installed by the SQL Toolkit for CVI, a toolkit that permits to connect to various databases and execute sql instructions to read / write to them. If I'm not wrong this toolkit is now part of the more general Enterprise Connectivity Toolset.
This error is probably due to the fact that you don't have this software in your system so that some function is missing an external dll.
02-08-2006 08:11 AM
I did install the sql toolkit as part of my cvi 7.0 install (almost immediately after), but I didn't know what compability issues I might have because the code was written for a previous version of the sql toolkit. The error code I'm receiving isn't even defined in the newer cvi_db.h
A little more information is probably helpful now. I installed cvi 7.0 and the new libraries that I had with it in the developer suite (including sql toolkit). However, as I think I mentioned, this code was written years ago for cvi 4.0. For some reason, they included cvi_db.h in the project headers and had a copy of several files (the fp, h, lib), within the project directory. How this worked, I don't know, but I'm told it did. Now, I'm trying to build this project (I can build and run) with having these files as part of the project, but also having installed only the newer version of the sql toolkit.
My guess is that one part of this problem is the conflicting versions being used of sql toolkit? However, I haven't seen a way to download the older toolkit to try. I also can't build when I remove the old header file.
02-13-2006 07:58 AM
I apologize, I thought I'd posted this sooner.
I found the answer to my compile problem. The project had included an old library in its file list. I replaced it with my newer installed sql toolkit library.