Just beginning to delve into C++ .NET and syntax feels a little different to "regular" c++...
2 things... the first is that the compiler would not allow me to declare String with the following:Code:System::String *aString = new System::String("TestString"); delete aString;
So do I HAVE to use pointers then?Code:System String aString = "TestString";
Secondly... I could not "delete" the pointer... no memory leak?
Pointer towards a quick tutorial for these kinds of things would be great
Cheers!





Reply With Quote