Most of these problems have to do with a class that I need to create for the program.
First of all, I noticed that the keyword __gc is no longer used. Based on the generated code for my form I defined my class as a public ref class. So far this hasn't caused a problem but if I should be using a different type of class declaration it'd be nice to know.
The second thing I noticed is that all of the things that used to be * (pointers) now seem to use ^ instead. (such as Strings variables and component variables). Out of curiousity, what are these? are they these handles that I've heard about that are supposed to be better to use instead of pointers?
So far my only real problems are 2 errors I've gotten. The first has to do with the __property keyword. What is the MSVS2005 equivalent for declaring get properties for my class.
The other error I've gotten is regarding the ToString() method for my class. I defined it like so:
Expand|Select|Wrap|Line Numbers
- String ^BaseStat::ToString()
- {
- return name;
- }
I get the following error message: "matches base ref class method 'System::Object::ToString', but is not marked 'virtual', 'new' or 'override'..."
I'm not sure about what this is all about.
Also, should I still be using the #using <mscorlib.dll> statement in the header file for my class?
Any help would be appreciated.