How to create a Managed Class

I read on google(i couldnt find anything in the documentation), that to crate a manage class you must do it like this

__gc class classname
{

public:


private:

};

Is that right?
This is a C++ .NET thing which is not the same as plain C++.
Well then how do I do it?
Apparently, that's all you need to do:
http://www.functionx.com/vcnet/topics/gcclass.htm

Notice in the above example how they have a #using <mscorlib.dll> directive.

For this to work, you'll either have to use Visual Studio .NET (or Visual C++ .NET). Or, if you're using a non-.NET version of Visual Studio, you'll have to turn on CLR support in the project properties.

http://msdn.microsoft.com/en-us/library/k8d11d4s(v=vs.80).aspx
Last edited on
Topic archived. No new replies allowed.