<html><body>I know I have done this before, many years ago.<br>We created an OLEVariant e.g.<br><br> myADOConn := createoleobject('adoconnection.xxx');<br> (or however it goes)<br><br>and then passed myADOConn thru to the dll and then it was able to be uses by the dll.<br><br>How I did it excactly, I cant remember, but I know that it worked :-)<br><br>Jeremy<br><br>
<blockquote webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px;">
-------- Original Message --------<br>
Subject: [DUG] TADOConnection ConnectionObject sharing across dll<br>
boundary<br>
From: "Leigh Wanstead" <<a href="mailto:leighw@softtech.co">leighw@softtech.co</a>.nz><br>
Date: Wed, August 06, 2008 2:37 pm<br>
To: "NZ Borland Developers Group - Delphi List" <<a href="mailto:delphi@delphi.org">delphi@delphi.org</a>.nz><br>
<br>
Good afternoon,<br>
<br>
I have a exe application with multiple dlls. Each dll has a datamodule<br>
including a TADOConnection. It takes around half seconds to run<br>
TADOConnection.Connected := true I assume this is normal.<br>
<br>
But all these time total up takes around several seconds which is too long.<br>
I think that I only have one TADOConnection in one dll. And share the rest<br>
with this TADOConnection. Can I just pass TADOConnection.ConnectionObject<br>
around to share dll? My understanding is delphi object can not be shared<br>
across dll. But _Connection should be ok, right?<br>
<br>
BTW, what is the right way to share TADOConnection across dll boundary?<br>
<br>
Have a nice day<br>
<br>
Regards<br>
Leigh<br>
<br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a onclick="return true;Popup.composeWindow('pcompose.php?sendto=delphi%40delphi.org.nz'); return false;" href="http://email.secureserver.net/pcompose.php#Compose" mce_href="http://email.secureserver.net/pcompose.php#Compose">delphi<b></b>@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank" mce_href="http://delphi.org.nz/mailman/listinfo/delphi"><a href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a></a><br>
Unsubscribe: send an email to <a onclick="return true;Popup.composeWindow('pcompose.php?sendto=delphi-request%40delphi.org.nz'); return false;" href="http://email.secureserver.net/pcompose.php#Compose" mce_href="http://email.secureserver.net/pcompose.php#Compose">delphi-request<b></b>@delphi.org.nz</a> with Subject: unsubscribe<br>
</blockquote></body></html>