Connection inside dll
Posted: Mon 04 Feb 2013 18:01
Hi Devart Team.
I've got problem with establishing connection inside dll. I created dll which contains class with MyConnection.
tmp.h
tmp.cpp
And now if I'm using mpTCP protocol everything is ok (application connects with MySQL), but when I changed on mpHttp protocol then application crash with error.

Is it possible connect MySQL using mpHttp inside dll?
My environment :
Windows XP SP3
CodeGear C++ Builder 2007 R2
Data Access Components for MySQL 5.90.0.59
I've got problem with establishing connection inside dll. I created dll which contains class with MyConnection.
tmp.h
Code: Select all
__declspec(dllexport) class tmpClass {
private:
TMyConnection *MySQL;
public:
tmpClass(); // constructor
};
Code: Select all
tmpClass::tmpClass() {
MySQL = new TMyConnection(MySQL);
MySQL->Database = "test";
MySQL->Username = "root"
MySQL->Password = "";
MySQL->Server = "localhost";
MySQL->HttpOptions->Url = "http://localhost/tunnel.php";
MySQL->Options->Protocol = mpHttp;
MySQL->LoginPrompt = false;
MySQL->Port = 3306;
try {
MySQL->Connect();
} catch (...) {
}
}

Is it possible connect MySQL using mpHttp inside dll?
My environment :
Windows XP SP3
CodeGear C++ Builder 2007 R2
Data Access Components for MySQL 5.90.0.59