[Mono-list] existing managed C++-libraries for Mono and whats with csgl?

James F. Bellinger zer@neo.rr.com
Tue, 30 Jul 2002 16:07:24 -0400


Actually, I just tested it. If you change iostream.h to iostream, and
add using namespace System; after #using <System.dll>, and vid to void,
this code does indeed compile. Some methods are compiled as native code,
and some as managed. Managed C++ lets one do a mixed executable and
transition their code over, but you certainly can do something like
this. :) And it isn't portable. :/ I'm unsure if it would be portable if
all unmanaged portions were removed, but in this case I can't see much
of a purpose in using Managed C++ at all. :)

Have a nice day :)
Jim Bellinger

-----Original Message-----
#include <iostream.h>
using namespace std;

#using <mscorlib.dll>
#using <System.dll>

vid main() {
  cout << "in native";
  Console::WriteLine("and in .net");
}