zolof said:
For the moment my MFC source code is compiled using VC++ 6.
Thanks to Microsoft, I cannot compile it using /clr.
I don't want to migrate because it cost a lot of efforts and because
VS2005
does not generates the same exe. The exe will be bigger, slower to
execute,
and not compatible with default libraies installed with Win98 and Win2000
(I
will need a new crt, mfc8.1 and atl8.1).
Creating managed wrappers and calling C# from C++ will introduce all the
issues mentioned here tenfold. You'll need not only the updated CRT, but
also the entire .NET Framework installed.
Actually, VC2005 generates better code than VC6, your executable will be
smaller or faster (depending on what optimization settings you choose) just
by recompiling your standard C++ source code. You can also statically link
the new CRT so you don't need to install it separately, but not if you want
to run managed code in the same application.
You really need to decide between avoiding the new CRT dependency and using
C#. You can't have both.