Using C++ Builder 10.4, MultiDevice, targeting Win64
Trying to connect to a sqlite table - Win32 works, Win64 fails
Again executable - so I need
Prject Options :
C++ Linker Link with Dynamic RTL = false
Runtime Packages - Link with runtime packages = false
was trying with FireDac, several emails with Embarcadero - but can not get past the
Ending up with the same error -
[ilink64 Warning] Warning: Out of memory
[ilink64 Error] "ilink32" exited with code 2.
After more than a week of emails with Embarcadero - and no success I dropped the FIREDAC stuff - and try to do this another way.
Win 32 id fin but 64 fails
Trying to use a SQLConnection, and a SQLQuerry, on a Stand Alone Exectuable for Windows 64 bit
On form I have SQLConnection1, and SQLQuery1 Couple of buttons and Edit1
I can connect to table :
Code: Select all
void __fastcall TTabbedForm::Button1Click(TObject *Sender)
{
SQLConnection1->ConnectionName = "DUC SQLite";
SQLConnection1->DriverName = "SQLite";
SQLConnection1->VendorLib = "sqlite3.dll";
SQLConnection1->LoginPrompt = false;
SQLConnection1->Params->Values["Database"] = "E:\\IDM_C\\Programs\\DUC 2020 December\\Program\\Win64\\Debug\\DUC_db.s3db";
SQLConnection1->Connected=true;
}
Code: Select all
void __fastcall TTabbedForm::Button2Click(TObject *Sender)
{
TabbedForm->SQLQuery1->SQL->Clear();
TabbedForm->SQLQuery1->SQL->Add("SELECT * FROM DUC_Settings");
TabbedForm->SQLQuery1->Active=true;
TabbedForm->SQLQuery1->Open();
TabbedForm->SQLQuery1->First();
String temp;
temp = TabbedForm->SQLQuery1->FieldByName("Time_Duration_L")->AsString;
Edit1->Text=temp;
}
See attached image
Any ideas ? Thanks,
Andrew