D
Donos
I have a CString with 100 characters. Now i want to make that to 2
lines.
For example,
CString str = "This is just a test to find out how to break a
cstring";
I want this CString in the following format,
CString str1 = This is just a test to find
out how to break a cstring
ie, it should come in 2 lines.
I tried using line break (\n). But that doesn't work.
This was the code that i used.,
CString str = "This is just a test to find out how to break a
cstring";
int i = str.GetLength();
CString str1 = str.Left(i/2);
str1 += '\n';
str1+= str.Right(i/2);
str = str1; // But this is not working. It's not coming in 2 lines.
Is there any other way i can do this?
lines.
For example,
CString str = "This is just a test to find out how to break a
cstring";
I want this CString in the following format,
CString str1 = This is just a test to find
out how to break a cstring
ie, it should come in 2 lines.
I tried using line break (\n). But that doesn't work.
This was the code that i used.,
CString str = "This is just a test to find out how to break a
cstring";
int i = str.GetLength();
CString str1 = str.Left(i/2);
str1 += '\n';
str1+= str.Right(i/2);
str = str1; // But this is not working. It's not coming in 2 lines.
Is there any other way i can do this?