(Probably obvious) .NET question - creating objects dynamically

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jethro (Jethro_uk_at_hotmail.com)
Date: 06/14/04


Date: Mon, 14 Jun 2004 08:36:27 +0000 (UTC)

Hi all,

I have a solution, which contains several projects. Each project occupies
the same namespace, and compiles to s different .NET DLL

e.g.

MyNamespace.ThisClass is in one DLL
MyNamespace.ThatClass is in another DLL

I wish for a .NET EXE to be able to dynamically create an instance of either
on of the classes, given the classes name as a string.

I have tried using System.Reflection.Assembly calls, but watching in debug,
the Load call fails.

What would the mechanism be for doing this ?

thanks in advance.



Relevant Pages

  • Re: (Probably obvious) .NET question - creating objects dynamically
    ... Each project occupies ... and compiles to s different .NET DLL ... given the classes name as a string. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Calling a .NET DLL in C++ / Writing a COM Interface to .NET assemb
    ... Create MFC or win32 project under the category Visual C++ projects ... I know the DLL is ... We want to be able to call this DLL from Dexterity and use its ... > "Your best bet is to write a COM interface to your .NET dll and then ...
    (microsoft.public.dotnet.languages.csharp)
  • .NET dll config files
    ... A third party application will be invoking my .NET dll ... these will be used by the main assemblies B,C and D ...
    (microsoft.public.vsnet.general)
  • .NET dll config file
    ... A third party application will be invoking my .NET dll ... these will be used by the main assemblies B,C and D ...
    (microsoft.public.dotnet.general)
  • .net dll in VB6 Anwendung aktualisieren
    ... In eine VB6 Anwendung wird auf eine .net DLL verwiesen. ... Private Sub Form_Load ... Dim MyTest As New clsHW ...
    (microsoft.public.de.german.entwickler.dotnet.vb)