Re: Share ADO Connection from Exe TO DLL
From: hu zhenghui (webmaster_at_huzhenghui.51.net)
Date: 09/22/04
- Next message: hu zhenghui: "Re: DBGrid Selected Rows"
- Previous message: hu zhenghui: "Re: ADO, Access table and LDB file"
- In reply to: PlutuDev: "Share ADO Connection from Exe TO DLL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 22 Sep 2004 06:28:42 +0800
_Connection is Interface, it has "reference counting", Why not passing the
TADOConnection?
-- If my answer can't solve you problem, welcome mail me the project files. webmaster@huzhenghui.51.net "PlutuDev" <PlutoDev@Yahoo.com> дÈëÏûÏ¢ news:41486036@newsgroups.borland.com... > I built my application with many dll (for reporting) > > but when i load dll, I reconnect TAdoConnection.. I want to avoid this > reconnection.. but how to do this ??. > > I have try passing ADOConnectionObject :_Connection from exe to dll > so when i load dll, > i write dm.dbCon.ConnectionObject := AdoCon; > > dm -> datamodule > dbcon -> TADOConnection > adoCon -> _Connection > > it's succesfully. but after exit from dll, back to exe.. > my connection is lost cause of FreeLibrary(dlllib) > > How to fix this problem.. > or is there other solution > > Sorry for bad eglish > > thanks in advance > > > >
- Next message: hu zhenghui: "Re: DBGrid Selected Rows"
- Previous message: hu zhenghui: "Re: ADO, Access table and LDB file"
- In reply to: PlutuDev: "Share ADO Connection from Exe TO DLL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|