I've been using C++ Builder since v1, and until Windows 7 broke my copy of C++ Builder 3 I used it regularly.
So I recently discovered Embarcadero has the community edition of C++ Builder, and so I downloaded it. Unfortunately it is a convoluted mess to me, as I HATE using unicode strings! Give me the old days! :-)
But I've managed to convert most of my code over now, but ran into an odd problem. I have a few lines of code that don't seem to be working. Here's an example:
AnsiString s;
s = Form1->InputString;
s += L" - Some Extra Text.";
When I set a breakpoint on the next line of code, then examine s, I see:
> s { ???? }
instead of what should be there! In this case, InputString is an AnsiString that contains the text "Start Here". If I examine that variable I see:
> InputString { "Start Here" }
So, shouldn't I see:
> InputString { "Start Here - Some Extra Text" }
when I examine s?
This makes no sense to me! Especially when I move the breakpoint to the concatenation line and examine s before the "Extra Text" is added. As it still shows { ???? } when I evaluate it!
Any ideas?