01-18-2010 09:05 AM
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.
01-19-2010 01:05 AM
06-13-2012 02:37 PM
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.