Using a C# component from within VB6 (none .net)

  • Thread starter Thread starter Dirk B
  • Start date Start date
D

Dirk B

I would like to know if the following is possible:

create a component using C# or VB.NET -> component will use the
..netframework v2
create a VB (NONE .net) COM object that uses the above created component

And if this is possible are their any pitfalls that we should be aware off?



Dirk.
 
Dirk B said:
I would like to know if the following is possible:

create a component using C# or VB.NET -> component will use the
.netframework v2
create a VB (NONE .net) COM object that uses the above created
component

It is possible, .NET objects can be used from COM.
And if this is possible are their any pitfalls that we should be aware
off?

The first such component loaded into the process will determine the .NET
runtime version used for all subsequent components.
 
Thanks for the answer.
Can this .NET component also be used from within a VB6 application/service
(instead of from a COM written in VB6)?



dirk.
 
Dirk B said:
Thanks for the answer.
Can this .NET component also be used from within a VB6 application/service
(instead of from a COM written in VB6)?

Should work, same concern if mixing components from different versions of
..NET

VB6 uses COM natively, not just for COM servers.
 
Back
Top