Register driver within.
Register driver within.
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
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
In Delphi2007, the Registerfunction is out-commented like this:Antaeus wrote:You can do the same with Delphi 2007.
Note, Delphi 2007 lets link more than one driver to a single application.
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;
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
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
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.