|
|
| View previous topic :: View next topic |
| Message |
|
Author
|
jimmyatic
Newbie
|
Joined: 27 Jul 2006
Posts: 3
|
|
Posted: Thu Jul 27, 2006 1:00 pm
Post subject: mutiline textbox newlines |
|
|
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
="hello\ngoodbye") whenever i view the contents through the debugger or on screen it comes out to be "hello□goodbye". What I'm trying to ask is how to fix it. Is there a way.
Which i believe was Rob's problem on another posting:
"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? "
|
| Back to top |
|
 |
|
Author
|
jimmyatic
Newbie
|
Joined: 27 Jul 2006
Posts: 3
|
|
Posted: Thu Jul 27, 2006 1:00 pm
Post subject: |
|
|
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
="hello\ngoodbye") whenever i view the contents through the debugger or on screen it comes out to be "hello□goodbye". What I'm trying to ask is how to fix it. Is there a way.
Which i believe was Rob's problem on another posting:
"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? "
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|