Click here to Skip to main content
15,921,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: A CString question Pin
James R. Twine7-Apr-06 1:57
James R. Twine7-Apr-06 1:57 
GeneralRe: A CString question Pin
<color>Aljechin 7-Apr-06 2:00
<color>Aljechin 7-Apr-06 2:00 
GeneralRe: A CString question Pin
Cedric Moonen7-Apr-06 1:58
Cedric Moonen7-Apr-06 1:58 
GeneralRe: A CString question Pin
Roger Stoltz7-Apr-06 1:59
Roger Stoltz7-Apr-06 1:59 
GeneralRe: A CString question Pin
<color>Aljechin 7-Apr-06 2:04
<color>Aljechin 7-Apr-06 2:04 
GeneralRe: A CString question Pin
jhwurmbach7-Apr-06 2:40
jhwurmbach7-Apr-06 2:40 
JokeRe: A CString question Pin
James R. Twine7-Apr-06 2:50
James R. Twine7-Apr-06 2:50 
AnswerRe: A CString question Pin
James R. Twine7-Apr-06 1:46
James R. Twine7-Apr-06 1:46 
   That is ~205KB of data, which is a small amount of data in today's world.

   Note that if you are copying the data directly into the CString in one shot, the performance will be MUCH better than if you keep appending into the CString.

   If you need to be messing around with individual pages or lines a lot, you might want to use something else like an embedded editor (a hidden edit/richedit control, for example), or your own implementation of a text-row table (and array of pointers, one for each page/line) or something like that.

   Lastly, it might be worth making sure that the function HAS to take a CString - there are lots of examples of poorly-designed code that take CString parameters unnecessarily, when a simple LPCTSTR would work fine.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
GeneralRe: A CString question Pin
Blake Miller7-Apr-06 4:01
Blake Miller7-Apr-06 4:01 
QuestionIntroduce Yourself to Vc++ Part II,III,IV Pin
manhhung_luu7-Apr-06 0:58
manhhung_luu7-Apr-06 0:58 
AnswerRe: Introduce Yourself to Vc++ Part II,III,IV Pin
Ștefan-Mihai MOGA7-Apr-06 1:18
professionalȘtefan-Mihai MOGA7-Apr-06 1:18 
QuestionRe: Introduce Yourself to Vc++ Part II,III,IV Pin
David Crow7-Apr-06 2:56
David Crow7-Apr-06 2:56 
QuestionHow to customize MessageBox? Pin
Drca7-Apr-06 0:46
Drca7-Apr-06 0:46 
AnswerRe: How to customize MessageBox? Pin
Ștefan-Mihai MOGA7-Apr-06 0:56
professionalȘtefan-Mihai MOGA7-Apr-06 0:56 
GeneralRe: How to customize MessageBox? Pin
Drca7-Apr-06 1:33
Drca7-Apr-06 1:33 
AnswerRe: How to customize MessageBox? Pin
James R. Twine7-Apr-06 1:55
James R. Twine7-Apr-06 1:55 
Questionsizeof Pin
vikramlinux7-Apr-06 0:35
vikramlinux7-Apr-06 0:35 
AnswerRe: sizeof Pin
Ștefan-Mihai MOGA7-Apr-06 0:39
professionalȘtefan-Mihai MOGA7-Apr-06 0:39 
GeneralRe: sizeof Pin
vikramlinux7-Apr-06 0:43
vikramlinux7-Apr-06 0:43 
GeneralRe: sizeof Pin
Cedric Moonen7-Apr-06 0:56
Cedric Moonen7-Apr-06 0:56 
GeneralRe: sizeof Pin
vikramlinux7-Apr-06 2:45
vikramlinux7-Apr-06 2:45 
GeneralRe: sizeof Pin
toxcct7-Apr-06 2:54
toxcct7-Apr-06 2:54 
GeneralRe: sizeof Pin
vikramlinux7-Apr-06 3:19
vikramlinux7-Apr-06 3:19 
GeneralRe: sizeof Pin
toxcct7-Apr-06 3:30
toxcct7-Apr-06 3:30 
AnswerRe: sizeof Pin
James R. Twine7-Apr-06 0:50
James R. Twine7-Apr-06 0:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.