Re: Share ADO Connection from Exe TO DLL

From: hu zhenghui (webmaster_at_huzhenghui.51.net)
Date: 09/22/04


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
>
>
>
>


Relevant Pages

  • 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)
  • 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)
  • 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)
  • Re: Getting Calling Thread (DLL) Module Name
    ... > called the server). ... connection information for all context for various ideas; ... the name of the DLL, We just know the program name. ... In the above snapshot, where there is an HTTP connection type, we know its ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Where to place app.config file
    ... If you create the app.config for project1 your DLL will just read that APP ... So there would be no need to pass the connection string from the EXE ... from a different config, you may try searching groups.google.com if you ... > public static SqlConnection Connection() ...
    (microsoft.public.dotnet.languages.csharp)