ToUpper not working

  • Thread starter Thread starter Thomas
  • Start date Start date
T

Thomas

I have the following managed code:

String* ts;
ts = S" test ";
ts = ts->Trim();
ts = ts->ToUpper();

The ToUpper does not work; at the end of this ts is still lower case. What
is the problem

Thanks!
 
David said:
Use "String^ ts" since 'String' is a managed type.

It is clearly (by use of S"" prefix) Managed Extensions for C++ code.

To OP: Managed Extensions for C++ is extremely buggy. Upgrade to .NET 2.0
(VS 2005) or higher and use C++/CLI instead.
 
Back
Top