COM+ Interop

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
 
W

Willy Denoyette [MVP]

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

Nicholas Paldino [.NET/C# MVP]

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

Willy Denoyette [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top