Re: consuming managed C# DLL from unmanaged VB6

Tech-Archive recommends: Speed Up your PC by fixing your registry



"Tremendo" <nomail@xxxxxxxxxxxx> schrieb im Newsbeitrag
news:r0ihr219s91k7htjd5qqsp34qgksqhas7v@xxxxxxxxxx
On Thu, 25 Jan 2007 09:37:10 +0100, "Willy Denoyette [MVP]"
<willy.denoyette@xxxxxxxxxx> wrote:

"Tremendo" <nomail@xxxxxxxxxxxx> wrote in message
news:f9ngr2tddi8pnvqc6v9fe4c717iearq7e7@xxxxxxxxxx
Hi,

I created a DLL using managed C# and this DLL needs to be consumed by
two
applications:
- One is written in managed C#, and will
run on a PC that does have the .NET framework installed (no problems
regarding this one).
- The other one is written in unmanaged Visual Basic 6, and will run on
a PC that does NOT
have the
.NET framework installed (my problems start here).

I wonder..
1) Is it required to install the .NET framework on the second PC, to
consume
that DLL?

Yes. You can't run C# (or any other managed language) code without the
framework installed.

Ok. If I install the .NET framework on the second PC, will I be able to
call that managed DLL from
unmanaged VB6 or I need to change the VB itself?

IOW, installing the .NET framework seems to be necessary. Is it also
sufficient?

you can export the .NET classes as COM objects. Look in the docs for COM
interop.



Thank you again.


.



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: consuming managed C# DLL from unmanaged VB6
    ... I created a DLL using managed C# and this DLL needs to be consumed by two ... .NET framework installed. ... Is it required to install the .NET framework on the second PC, to consume ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: consuming managed C# DLL from unmanaged VB6
    ... I created a DLL using managed C# and this DLL needs to be consumed by two ... .NET framework installed. ... Is it required to install the .NET framework on the second PC, to consume ...
    (microsoft.public.dotnet.languages.csharp)
  • 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)