LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SQL toolkit Vista and windows 7 problem

Hi all.

 

I have a program that uses the SQL Toolkit, Its works like a dream on Windows XP.

But when i try to run the app with the same ODBC setting as xp on Windows Vista and 7 i cant connect to the database.

Does anyone know why this is happening and a solution if you have one ?

 

Code:

 

DBInit (DB_INIT_MULTITHREADED);
DatabaseHandle = DBConnect ("DSN=ITAGv11");
if (DBError ())
{
MessagePopup("Error","Database connection problem.");
}

 

I have attached an image of my ODBC settings.

 

Thanks in advance.

 

 

Help share your knowlegde
Download All
0 Kudos
Message 1 of 3
(3,282 Views)
Message 2 of 3
(3,255 Views)

Adding cvidb32.dll to my distribution kit solved the problem for me. It can go either to the same folder as your executables (that's what I did), or to the windows/system32 folder. I am assuming your DSN is setup properly and testing OK? I spent some time getting my SQL Server to work as a DSN on Win-7 first.

0 Kudos
Message 3 of 3
(2,799 Views)