Passing DB-Connection -
04-12-2006
, 07:12 AM
Hi.
I have a Win32-application which opens with Windows-API-Functions an
ODBC-Connection to a database. Now, I use in this application a DLL which is
written in C# which uses the ADO.NET-Provider from Sybase.
I call methods from this DLL over COM. In this DLL, there
should also executed database-calls. Now, is there a possibility to move my
Connectionhandle from my Mainapplication to the C#-DLL and then to
instantiate with this Handle an ASAConnection-Object in the C#-DLL? - The
goal is to use the same connection to the database in my Win32-Mainapp and
in the C#-DLL, so I can make correct Transactionhandling which contains
DB-Transactions in the Main-win32App and the C#-DLL.
Does anybody have an idea? - Thanks!
Thomas |