10-17-2013 09:56 AM
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
Solved! Go to Solution.
10-18-2013 09:35 AM
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?
10-18-2013 09:46 AM
Jessie
I attached the code. The error happens in the function Open_Database at the command giDatabaseHandle = DBNewConnection();
Paul
10-21-2013 09:07 AM - edited 10-21-2013 09:13 AM
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.
10-21-2013 11:06 AM
Jesse,
Is the SQL Toolkit required to be installed on the target computer? I thought it just needed to be on the development computer?
10-21-2013 02:12 PM
Jessie,
I fixed the issue. I added the CVISQLShared.msm to the installer and re-installed the program.
Paul