Passing SqlConnection object to activex control as _ConnectionPtr

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a .NET C# program that references a COM object that is expecting a
database connection pointer (_ConnectionPtr) parameter. How can I pass my
open SqlCOnnection object as a pointer ?
Any help is greatly appreciated.
 
Ah, you can't pass a connection object across COM boundaries. You can pass a
connection string, but not the connection.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
 
Back
Top