M
MT
Does anybody know if String::Format is messed up in C++. Here's a line of
code:
Console::WriteLine(String::Format(new
System::Globalization::CultureInfo("en-US"), "{0} : {1} %", S"Haha",
__box(12.00)));
Here's the error I get:
error C2665: 'System::String::Format' : none of the 5 overloads can convert
parameter 1 from type 'System::Globalization::CultureInfo __gc *'
All I am trying to do is force US English locale with String::Format. Is
this the wrong way of doing things?
Thanks,
MT
code:
Console::WriteLine(String::Format(new
System::Globalization::CultureInfo("en-US"), "{0} : {1} %", S"Haha",
__box(12.00)));
Here's the error I get:
error C2665: 'System::String::Format' : none of the 5 overloads can convert
parameter 1 from type 'System::Globalization::CultureInfo __gc *'
All I am trying to do is force US English locale with String::Format. Is
this the wrong way of doing things?
Thanks,
MT