K
Kim Hellan
I come from C# development, but I have to make a .NET WinForm application in
C++.
I'm having some troubles handling strings in C++, which seems a lot more
problematic than in C#.
Lets say I want to construct a string like this which combines string
variables, plain strings and strings from WinForm controls:
string startStr = "<just starting>";
string newStr = startStr + myControl1->Text + "getting further" +
myControl2->Text + "the end";
In C# this is no problem, but in C++ I get all kinds of errors.
Any advice on how to handle this, would be much appreciated.
Thanks,
Kim
C++.
I'm having some troubles handling strings in C++, which seems a lot more
problematic than in C#.
Lets say I want to construct a string like this which combines string
variables, plain strings and strings from WinForm controls:
string startStr = "<just starting>";
string newStr = startStr + myControl1->Text + "getting further" +
myControl2->Text + "the end";
In C# this is no problem, but in C++ I get all kinds of errors.
Any advice on how to handle this, would be much appreciated.
Thanks,
Kim