Str and System.String conversion |
![]() |
|
|
This constructor will initialize the object to contain a copy of the passed .NET string object.
The source parameter cannot be null.
|
|
|
|
|
The overloaded assignment operator will copy the passed .NET string into the Str object. The .NET string cannot be null.
|
|
|
|
|
This method will return a newly created .NET System.String containing a copy of the Str object data.
Example:
String __gc* MyManagedClass::GetTextData() {
Str obj1 (_T("Some text"));
return obj1.ToManaged();
}
See also: Str: Windows and .NET Specific, Managed C++ Overview