LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DB_FAILED_TO_LOAD_DLL

Solved!
Go to solution

I am getting this error DB_FAILED_TO_LOAD_DLL on a newly created system when trying to connect to an ODBC Access database using the command DBNewConnection(). The code runs on 5 other systems fine and installed on the new system without any errors.  I have compared the dlls between a couple of systems and can't see any difference between the them.

 

What is the DLL the function is trying to load?

 

Paul

0 Kudos
Message 1 of 6
(4,159 Views)

I don't recognize that command from any particular dll, nor do I see it as one of the default functions in CVI.  Are there any modules that you have on the machines that would have installed this dll?  Do you have the source code where you can see what header files are included that reference a dll?

Jesse S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(4,147 Views)

Jessie

 

I attached the code.  The error happens in the function Open_Database at the command giDatabaseHandle = DBNewConnection();

 

Paul

Download All
0 Kudos
Message 3 of 6
(4,144 Views)
Solution
Accepted by topic author Paul_Knight_Lockheed_Mart

It looks like the command is from the cvi_db.h file.  I would recommend looking through that header file to see which DLL is missing.  Also, I would suggest checking to see what modules you have installed on the computers that work.  It appears the DLL is from the SQL Toolkit.

Jesse S.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 6
(4,122 Views)

Jesse,

 

Is the SQL Toolkit required to be installed on the target computer?  I thought it just needed to be on the development computer?

0 Kudos
Message 5 of 6
(4,112 Views)

Jessie,

 

I fixed the issue.  I added the CVISQLShared.msm to the installer and re-installed the program.

 

Paul

0 Kudos
Message 6 of 6
(4,107 Views)