COM+ Interop

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

Guest

I have a COM+ component developed in C#. Can I use this from VB6 client ? Any
issues with doing this. This component has a lot of business logic and is
being used by other C# and ASP.Net clients. Thanks
 
O''neil said:
I have a COM+ component developed in C#. Can I use this from VB6 client ?
Any
issues with doing this. This component has a lot of business logic and is
being used by other C# and ASP.Net clients. Thanks

If your COM+ component is designed to be COM "friendly" this shouldn't be a
problem.

Willy.
 
O'Neil,

No, it shouldn't be a problem. The big thing is that you should have
separated interface from implementation. If you did that, then it's very
easy. You can just call CreateObject, passing the program id of the COM+
component, and then cast to the interface (which you can create using the
TLBEXP utility to create the type library).

Hope this helps.
 
Note that the typelib is created when running the regsvcs.exe utility, which
is required to register the component in the COM+ catalog.

Willy.

Nicholas Paldino said:
O'Neil,

No, it shouldn't be a problem. The big thing is that you should have
separated interface from implementation. If you did that, then it's very
easy. You can just call CreateObject, passing the program id of the COM+
component, and then cast to the interface (which you can create using the
TLBEXP utility to create the type library).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

O''neil said:
I have a COM+ component developed in C#. Can I use this from VB6 client ?
Any
issues with doing this. This component has a lot of business logic and is
being used by other C# and ASP.Net clients. Thanks
 
Back
Top