.NET and COM/ActiveX

  • Thread starter Thread starter Robert Wehofer
  • Start date Start date
R

Robert Wehofer

Hello there!

I would like to know how .NET manages COM/ActiveX. How do you write
COM-Clients and Servers with .NET? Or how do you provide informations and
function to the outside world without COM?

Regards,
Robert
 
Robert,

If I understand your question properly, you want to know how you can share
..NET code between multiple applications? To do this you need to strongly
name your assembly and install it in the GAC (global assembly cache).
Multiple versions of your assembly can coexist in the GAC and multiple
applications can use any version of your assembly from the GAC.

To use .NET assemblies on a server machine from a client machine, you need
to use .NET remoting. This is quite a broad topic so you're better off
reading about it in the fx doco or elsewhere.

HTH,
Kent
 
If I understand your question properly, you want to know how you can share
.NET code between multiple applications? To do this you need to strongly
name your assembly and install it in the GAC (global assembly cache).
Multiple versions of your assembly can coexist in the GAC and multiple
applications can use any version of your assembly from the GAC.

Ok, it's possible that two .NET processes can communicate each other by
using strong names.

But is it possible, that a .NET process could communicate with a COM server?
And is it possible, that a VB application could communicate with a .NET
application?

Robert
 
Robert Wehofer said:
Ok, it's possible that two .NET processes can communicate each other by
using strong names.

But is it possible, that a .NET process could communicate with a COM server?
And is it possible, that a VB application could communicate with a .NET
application?

Robert

Via interop, yes. See if the following helps:

HOW TO: Call Visual Basic .NET Assembly from Visual Basic 6.0 and Call Visual Basic COM Component from Visual Basic .NET

http://support.microsoft.com/default.aspx?scid=kb;en-us;817248
 
Back
Top