Microsoft KB Archive/318614

= HOW TO: Set Up a COM Component to Be Used from a .NET Client Across Computer Boundaries =

Article ID: 318614

Article Last Modified on 4/22/2004

-

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 Standard Edition
 * Microsoft Visual C# .NET 2003 Standard Edition

-



This article was previously published under Q318614



IN THIS TASK
SUMMARY
 * Set Up the Server
 * Set Up the Client



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  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(&quot;&quot;), &quot;&quot;); Object myObj = Activator.CreateInstance(t); back to the top

Keywords: kbhowtomaster kbinterop KB318614

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.