Groups | Blog | Home
all groups > dotnet interop > july 2003 >

dotnet interop : Loading up COM at runtime


kokwooi NO[at]SPAM rocketmail.com
7/31/2003 7:13:43 PM
Hi all,

I'm a beginner at COM and .NET. Jus wondering can I dynamically load a
COM object at runtime without adding reference during design-time (eg.
maybe using ProgID?)?

Mattias Sjögren
8/1/2003 11:04:11 PM

[quoted text, click to view]

Yep. In VB.NET you can use the CreateObject function. In C# and other
languages you can use Type.GetTypeFromProgId followed by
Activator.CreateInstance.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
AddThis Social Bookmark Button