Can one complie C++ code as a .NET Assembly?

hi all.
is it at all possible to compile some unmangaed c++ code as a .NET assembly?
when i try doing so, i get all sorts of errors saying that a non-managed types cannot be declared in such assembly, etc.
so i figured that my classes should be __gc'd and inherit from System::Object.
is there a way to work around it?
cheers.
[351 byte] By [Justis] at [2007-11-18 13:41:28]