Jon Harrop wrote:
Ben Voigt [C++ MVP] wrote:
>Specifically, C++/CLI. The native code doesn't have to be C++
though, you can link any static library with a C++/CLI wrapper into
a single mixed-mode assembly.
Can I then statically link that DLL into a C# DLL?
You said "into a .NET DLL". The C++/CLI compiler creates assemblies that
can be used from any .NET language, just as if it were a C# DLL.
You can also compile your whole program into .netmodule files and use the
C++/CLI linker to create the executable. The C# compiler hasn't any concept
of static linking though, you must use the C++/CLI linker for this even if
some of the code was compiled in C#.
>
>Note that this is the wrong group for such things, which is why
you'll get people telling you it can't be done.
What is a more appropriate (language agnostic if possible) group?
Thanks,