Re: load .NET dll

From: Olaf Baeyens (olaf.baeyens_at_skyscan.be)
Date: 09/23/04


Date: Thu, 23 Sep 2004 14:09:40 +0200


> That depends on what you mean by loading a .net assembly.
>
My best guess is that he wants to use the C# dll in a pure unmanaged C++
program without the need for a .NET framework.

So he has 2 options, but both expects the .NET framework to be installed, no
choice around this.
* He must use mixed managed/unmanaged code to let the dll be loaded into the
application using a managed class wrapper.
* "IF" the DLL supports classes that are also compiled with
[assembly:CLSCompliant(true)] and [assembly:ComVisible(true)], THEN he can
use this class as a typical COM object without need to make his program
managed.

In both cases the .NET framework will be loaded.



Relevant Pages

  • Re: System.Runtime.InteropServices.COMException: Error
    ... after i registered the dll on sever, ... > Is there any other setting I need to do on Win2K3 to make the old dll work> on .Net framework? ... > Exception Details: System.Runtime.InteropServices.COMException: COM object> with CLSID is either not valid or not> registered. ...
    (microsoft.public.dotnet.general)
  • Re: VCL.NET revisited...
    ... Ever noticed the size of the .NET Framework directory? ... Back to DLL Hell deployment? ... Delphi apps were/are mostly single exe only and any ... DevCo spinoff: Unmanaged Delphi W32. ...
    (borland.public.delphi.non-technical)
  • Re: .tmp is not a valid win32 resource file
    ... Please suggest some ways to resolve ... I replaced the dll as suggested in the mentioned post. ... dll present in the framework folder and the system 32 folder are ... I got the problem when i reinstalled the .Net framework 1.1. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Redirecting Assembly Binding
    ... the fusion.dll which is component of .NET framework ... the strongnamed DLL is an evidence to prove its unique ... So the bindingredirect element is used in this scenario to instruct the CLR ... Because .NET will probe multiple places for an assembly binding. ...
    (microsoft.public.dotnet.framework)
  • Re: consuming managed C# DLL from unmanaged VB6
    ... I created a DLL using managed C# and this DLL needs to be consumed by ... .NET framework installed. ...
    (microsoft.public.dotnet.languages.csharp)