How to enter text line by line on CString object?
Posted Date Unknown stephin Francis Antony 2 Comments


I have a passage of text.Can I enter that text to CString object line by line?

See All Responses Below...
Message Rating
Posted on: 01/01/2014
You can write code Like this..

CString someMessage= "This is a test message";
someMessage += " ";
someMessage += "This is in the next line";

Try it like this and let me know..


Posted on: 01/01/2014
Sorry the new line is skipped by the web site framework..
So it is displaying like this

someMessage += " ";

It should be interpreted like this

someMessage += "slash n ";

Share this page across other social networking sites

Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site.