sureshhs
February 4th, 2005, 06:44 PM
Hello,
Could somebody explain me why this is not working.
public Class MyClass1
{
public MyClass2 class2;
:
:
}
public Class MyClass2
{
Public String Path;
:
:
}
System::String ^temp = gcnew System::String("TempString")
MyClass1^ class1 = gcnew MyClass1();
class1->class2->Path = temp ;
There is no error message or exception. But value doesnot get assigned
This is in managed C++.
^ is a new keyword in Visual Studio 2005 Beta, denotes __gc *
Thanks in advance,
Suresh
Could somebody explain me why this is not working.
public Class MyClass1
{
public MyClass2 class2;
:
:
}
public Class MyClass2
{
Public String Path;
:
:
}
System::String ^temp = gcnew System::String("TempString")
MyClass1^ class1 = gcnew MyClass1();
class1->class2->Path = temp ;
There is no error message or exception. But value doesnot get assigned
This is in managed C++.
^ is a new keyword in Visual Studio 2005 Beta, denotes __gc *
Thanks in advance,
Suresh