Z
Z.K.
I am curious as to why this code works:
Form2 ^OC = gcnew Form2();
OC->Text = "Child";
OC->MdiParent = this;
OC->Show();
and this does not:
Form2 *OC = new Form2();
OC->Text = "Child";
OC->MdiParent = this;
OC->Show();
I have looked through all my .NET books about managed code and I can not
find any reference to using gcnew or the '^' which appears to be a
pointer notation. I am using the new Visual Studio 2005 if that
matters. I was wondering if someone could clear up my confusion.
Z.K.
Form2 ^OC = gcnew Form2();
OC->Text = "Child";
OC->MdiParent = this;
OC->Show();
and this does not:
Form2 *OC = new Form2();
OC->Text = "Child";
OC->MdiParent = this;
OC->Show();
I have looked through all my .NET books about managed code and I can not
find any reference to using gcnew or the '^' which appears to be a
pointer notation. I am using the new Visual Studio 2005 if that
matters. I was wondering if someone could clear up my confusion.
Z.K.