Page 1 of 1
Register driver within.
Posted: Thu 10 Jan 2008 14:26
by anordlun
Hi.
In Delphi 7 you where able to add referfence to the dbclient by using RegisterDbXpressLib.
Is it possible to do that with Delphi 2007?
//Andreas
Posted: Fri 11 Jan 2008 09:43
by Antaeus
You can do the same with Delphi 2007.
Note, Delphi 2007 lets link more than one driver to a single application.
Posted: Fri 11 Jan 2008 09:57
by anordlun
Antaeus wrote:You can do the same with Delphi 2007.
Note, Delphi 2007 lets link more than one driver to a single application.
In Delphi2007, the Registerfunction is out-commented like this:
Code: Select all
//var
//{$IFDEF MSWINDOWS}
// DllGetClassObject: function(const CLSID, IID: TGUID; var Obj): HResult; stdcall;
// procedure RegisterDbXpressLib(GetClassProc: Pointer);
//{$ENDIF}
//
//threadvar
// GetDriver: TGetDriverFunc;
// DllHandle: THandle;
Could you attach an example?
Posted: Fri 11 Jan 2008 11:59
by Antaeus
You will find steps which describe static linking of the driver for Delphi 2007 in the ReadmeSrc.txt file. This file is located in the root directory of DbxSda.
Posted: Wed 15 Sep 2010 06:59
by anordlun
Hi.
In delphi 7 you were able to register the dbExpress library within the application with the procedure RegisterDbXpressLib. I want to do the same in Delphi 2010 with the latest version of dbxSda. Is that possible?
Borland (Embacardero) have removed the RegisterDbXpressLib procedure and im not sure how they solved this in D2010?
I want to compile all the code into one single file (incuding the dbExpress client) and I dont want to use any external file like dll och ini file.
Is that possible using Delphi 2010 and dbxSda version 4.55.0.23?
//Andreas
Posted: Fri 17 Sep 2010 09:32
by AndreyZ
Hello,
You will find steps which describe static linking of the driver for CodeGear RAD Studio 2007 and higher in the ReadmeSrc.txt file. This file is located in the root directory of DbxSda. This method is suitable for Delphi 2010.
Posted: Fri 17 Sep 2010 09:39
by anordlun
Yes I know. With this method i have to deliver the dbexpsda40.dll file along with my exe-file. I dont want to do that (Im not allowed to do that because of security issues at our customer). I want this dbExpress client to be builtin in the .exe file.
//Andreas
Posted: Fri 17 Sep 2010 11:46
by AndreyZ
ReadMeSrc.txt says:
Driver version with sources can be built into your applications. So you do not need to distribute the driver's DLL with your application.
Make the following steps to use the built-in driver with CodeGear RAD Studio:
1. Add built-in drivers to dbxdrivers.ini and dbxconnections.ini files. For that you need to add sections like in the paragraph 6 above, but change driver name in section names and in the [Installed Drivers] section to 'DevartSQLServerBuiltin' and 'DevartSQLServerCompactBuiltin'.
2. Add an additional parameter to the new sections in dbxdrivers.ini: DriverPackageLoader=TDbxSdaDriverLoader
3. Change the value of DriverUnit parameter in the new sections: DriverUnit=DbxSdaDriverLoader
4. Add the DbxSdaDriverLoader unit to the uses list of your project source or one of your project units.
5. Add LITE;DBX40 to conditional defines of your project.
6. Select one of new drivers for your TSQLConnection component.
Posted: Fri 17 Sep 2010 12:27
by anordlun
Hi.
Do i need the dbxdrivers.ini and dbxconnections.ini files or could i add them by code? I dont use the any designtime components, juwst create them runtime?
//Andreas
Posted: Mon 20 Sep 2010 07:22
by AndreyZ
You don't need the dbxdrivers.ini and dbxconnections.ini files for deploying your application on client machine.