[Mono-list] Windows.Forms and C++
Sergey Chaban
serge@wildwestsoftware.com
Wed, 27 Nov 2002 21:01:48 +0200
> But VC++.net creates programs
> - which consists of 100% IL-code (that you can run with mono)
> - which consists of 100% native-code (that you can run with wine)
> - and with consits a mix of IL-code and native-code.
>
> And the last one you can _not_ run on mono. Or I am wrong?
You're right.
In fact it's possible to run C++ programs, but not C programs that use
CRT functions (but it's possible to use some of them, like memcpy or
math functions).
For "pure" Managed C++ code (or STL-based, or C code that doesn't use CRT)
it should be possible, in theory, to run it with Mono if linked with appropriate switches.
In practice, it appears that VC sometimes produces native code even if setup to compile
to pure IL. I remember some of these cases described in MC++ specs.
Back to original topic - it's currently unknown what kind of C++ code would be produced
by VS.NET codegen for Windows.Forms; i.e. will it compile to pure IL or produce some
native code.
Sergey