Share ADO Connection from Exe TO DLL
From: PlutuDev (PlutoDev_at_Yahoo.com)
Date: 09/15/04
- Next message: Brian Bushay TeamB: "Re: EInvalidGraphic error"
- Previous message: PlutuDev: "Change Screen.Cursor when Exec/Run TADOQuery"
- Next in thread: Andrew: "Re: Share ADO Connection from Exe TO DLL"
- Reply: Andrew: "Re: Share ADO Connection from Exe TO DLL"
- Reply: hu zhenghui: "Re: Share ADO Connection from Exe TO DLL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 15 Sep 2004 22:41:08 +0700
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: Brian Bushay TeamB: "Re: EInvalidGraphic error"
- Previous message: PlutuDev: "Change Screen.Cursor when Exec/Run TADOQuery"
- Next in thread: Andrew: "Re: Share ADO Connection from Exe TO DLL"
- Reply: Andrew: "Re: Share ADO Connection from Exe TO DLL"
- Reply: hu zhenghui: "Re: Share ADO Connection from Exe TO DLL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|