gcnew is executed implicitely by some functions?
gcnew is executed implicitely by some functions?
For instance the following code seems to work:
Code:
System::String^ TempStr;
..
TempStr=String::Format("Bytes sent {0:D}\n",nbytes);
textBox4->AppendText(TempStr);
I did not have to perform in the .. section something like
Code:
TempStr= gcnew System::String("");
Is that OK?
Could you please answer also to this related thread
http://cboard.cprogramming.com/windows-programming/105998-micros-visstudio-2005-cplusplus-when-i-gcnew-object-should-i-then-free-somehow.html
?
Thank you!