HOW TO: Set Up a COM Component to Be Used from a .NET Client Across Computer Boundaries (318614)
The information in this article applies to:
- Microsoft .NET Framework Class Libraries 1.0
- Microsoft .NET Framework Class Libraries 1.1
- Microsoft .NET Framework 1.0
- Microsoft .NET Framework 1.1
- Microsoft Visual C# .NET (2002)
- Microsoft Visual C# .NET (2003)
This article was previously published under Q318614 SUMMARY
This step-by-step article explains how to use a COM dynamic-link library (DLL) from a .NET client across computer boundaries.
back to the top
Set Up the Server-
On the server computer, register the COM DLL by using Regsvr32:
regsvr32 <your dll> -
Host the COM DLL on COM+.
-
Make sure that no other COM+ application on the server computer is trying to host this same DLL.
back to the top
Set Up the Client
On the client computer, use the COM DLL as follows:
Type t = Type.GetTypeFromCLSID(new Guid("<the Dll GUID here>"), "<name of server where dll is hosted>");
Object myObj = Activator.CreateInstance(t);
back to the top
Modification Type: | Minor | Last Reviewed: | 4/22/2004 |
---|
Keywords: | kbHOWTOmaster kbinterop KB318614 kbAudDeveloper |
---|
|