|
Multi Lined Text and multiple lines in Visual C++ -- jimmyatic --
For Quite a while, I've been working with C++ .cpp files, using things like cout, cin, strings, blah blah... Now, I've started in with Visual C++ apps. I can get the multiline textbox to work fine and dandy, but when i want to store the multiple lines of data into a cstring (because i have yet to find a way to use normal strings, which would also be useful) or what ever wierd string they use (LPCWSTR?) or when i try to change the contents of cstring x into "hello\ngoodbye" (thus cstring x ="hello\ngoodbye") whenever i view the contents through the debugger or on screen or copy the contents into a textbox when I run it, it comes out to be "helloâ–¡goodbye". What I'm trying to do is ask how to fix it. Is there a way? Also, as a side note I believe I had the same problem as Rob. But no one responded to him either: "I was glad to see that VS2005 allows for multi line text for buttons, etc. However, when I try to use it, it doesn't seem to work. For buttons, I only get the first line. For checkboxes, I get the first line and then a box, which I assume is the carriage return. Am I doing something wrong, or is this a bug waiting to be fixed? " |