PlutuDev
2004-09-15 15:41:08 UTC
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
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