Hi,
I'm studying C++/CLI programming and I have problems with tracking handles. In some examples an object, such as an array, is created using the keyword 'gcnew': array<int>^ values = gcnew array<int>(5);
In other examples the keyword 'gcnew' is not used: array<int>^ values = {3, 5, 6, 8, 6};
I have read some articles about it, but none of them explain exactly when the use of 'gcnew' is necessary.
Can anybody explain me?
Thank you.