Page 1 of 1

TDBXError "Unknown driver: DevartMySQLDirect"

Posted: Thu 27 Aug 2009 18:33
by rfish
Using Builder 2009 and MySQL dbexpress 4.40.0.16 i get the above error.


This code worked fine under Builder 2007

Code: Select all

connection->ConnectionName = "Devart MySQL Direct";
connection->DriverName = "DevartMySQLDirect";
connection->LibraryName = CRLIB;
connection->VendorLib = "not used";
connection->GetDriverFunc = "getSQLDriverMySQLDirect";
connection->Params->Clear();
connection->Params->Values["Database"] = dbaseName;
connection->Params->Values["HostName"] = fullHost;
connection->Params->Values["Port"] =IntToStr( port);
connection->Params->Values["User_Name"] = this->userID;
connection->Params->Values["Password"] = this->password;
connection->Params->Values["Connection Timeout"] = IntToStr(30);
connection->Connected = true;
What is going on?

Posted: Fri 28 Aug 2009 06:21
by Dimon
To solve the problem add the DbxDevartMySql unit to the uses clause of your unit.

Posted: Wed 09 Sep 2009 17:21
by rfish
Thanks, that sure did fix it.

Just to be complete, the following code in C++ does the trick:

Code: Select all

#pragma package(smart_init)
#pragma link "DbxDevartMySQL"