"Jeff" <Je**@discussions.microsoft.comwrote in message
news:08**********************************@microsof t.com...
Thanks Ben. However, compiling the existing C++ unmanaged code using /CLI
is
not an option.
Why? What is your requirement that is not met by linking with /clr?
>
We need to have a native C++ program using methods from a C# .NET DLL. Is
that possible?
Knowing why you are required to have a "native" program will answer whether
C# can be used in that scenario.
Loading the .NET runtime into a native application to call C# is not (in any
meaningful way) so different from linking with /clr and having some native
and some managed parts.
In either case you have a dependency on having .NET installed, extra memory
used by .NET, and the possibility of the GC suspending any thread that does
not run purely native code (and the possibility to have purely native
threads the GC doesn't care about).