Share ADO Connection from Exe TO DLL

From: PlutuDev (PlutoDev_at_Yahoo.com)
Date: 09/15/04


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



Relevant Pages

  • Re: LoadKernelLibrary cant load dll
    ... I don't have memory low problem. ... I am using my application to load DLL into kernel. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: DLL Loading......
    ... You can use TLBINF32.dll in system32 directory to read non .Net dll's tlb ... Inspect COM Components Using the TypeLib Information Object ... The DLL must have metadata ... >> Im building a little utility that load dll and show me all his ...
    (microsoft.public.dotnet.languages.csharp)
  • DllImport mit ASP.NET ?
    ... Oder muß die DLL im System32-Ordner des WebServer liegen? ... An unhandled exception occurred during the execution of the ... Unable to load DLL.nable to load DLL ... public static extern int PaqGetVersion(); ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • asp library loading error
    ... My application give the error "unable to load dll" on executing this line of ... loginID = Request.Form ... I would like to understand what actually happens here: is a dll loaded ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: svchost.exe Application Error.
    ... Description: Net Win32 API DLL ... P.S the NetBio over TCP/IP is on the Internet Protocol TCP/IP properties, ... you gone to the Network connection and Right click your Wireless/Wired LAN, ...
    (microsoft.public.windowsxp.network_web)