C++ code called from C#

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

From: Daniel P. (danutzp1_at_hotmail.comU)
Date: 07/21/04


Date: Wed, 21 Jul 2004 09:23:34 -0500

I have some legacy code I would like to wrap by some new managed C++
classes, put them all into a DLL and then call the managed classes from a C#
app.

Can anyone recommend me a link with some info about this?

Also, can I statically link my DLL to my C# application or I have to ship
the Managed C++ DLL with the C# exe appllication?

Thanks!



Relevant Pages

  • Re: Loading mixed-mode application without .NET installed
    ... In the end we actually managed to also statically link the mixed ... cannot ship with a monolithic app apart from the 1 mixed mode DLL. ... you can decide on a module by module basis whether you statically link or ... > Hi Ronald, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Loading mixed-mode application without .NET installed
    ... In the end we actually managed to also statically link the mixed ... cannot ship with a monolithic app apart from the 1 mixed mode DLL. ... you can decide on a module by module basis whether you statically link or ... > Hi Ronald, ...
    (microsoft.public.vc.language)
  • Re: Creating and linking static DLLs
    ... the dll's also, and we are considering moving the code into the exe project, ... however I wanted to see if I could statically link the libs into the exe ... first to see if this will address a problem we are having with "dll crunch". ... The thing I don't know how to do is to get vs2005 to use the lib files to ...
    (microsoft.public.pocketpc.developer)
  • Re: ELF loading
    ... there is the version problem (also known as "DLL Hell"). ... you have huge memory allocations or you use memory-mapped ... But yes, the ability to statically link with modules or libraries that programmers have neither the time, nor possibly the capability to reinvent, is a basic premise in the real world. ...
    (alt.lang.asm)
  • Re: statically link to msvcrt71.dll
    ... I worded that badly - I understand it's statically link to the CRT, ... not the dll. ... static lib rather than the dll's lib. ... >> it even listed in the linker options. ...
    (microsoft.public.vc.ide_general)