Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem in getting strings with space. Pin
Laxman924-Jan-06 17:09
Laxman924-Jan-06 17:09 
GeneralRe: Problem in getting strings with space. Pin
David Crow25-Jan-06 5:17
David Crow25-Jan-06 5:17 
AnswerRe: Problem in getting strings with space. Pin
MANISH RASTOGI24-Jan-06 17:43
MANISH RASTOGI24-Jan-06 17:43 
AnswerRe: Problem in getting strings with space. Pin
toxcct24-Jan-06 21:39
toxcct24-Jan-06 21:39 
AnswerRe: Problem in getting strings with space. Pin
_anil_25-Jan-06 2:13
_anil_25-Jan-06 2:13 
AnswerRe: Problem in getting strings with space. Pin
David Crow25-Jan-06 5:24
David Crow25-Jan-06 5:24 
GeneralRe: Problem in getting strings with space. Pin
cpp_prgmer25-Jan-06 21:38
cpp_prgmer25-Jan-06 21:38 
GeneralRe: Problem in getting strings with space. Pin
David Crow26-Jan-06 2:48
David Crow26-Jan-06 2:48 
cpp_prgmer wrote:
Now the data may need to b displayed on Editcontrol whih is on a different dlg than the one from which the read request has been initiated.


It makes no difference, as long as the data being read is accessible by the other dialog.

cpp_prgmer wrote:
So one needs to store the data on2 a CString or like to Xfer the data to dat dlg.


The example I provided did store the data in a BYTE variable.

cpp_prgmer wrote:
Secondly, when u read file data u wud not know in advance how large the file length wud b...


Sure you would. I also showed this in the example. Did you not see it? Strangly enough, you used the same CString::GetLength() call in your code snippet.

cpp_prgmer wrote:
How abt having a fixed size buffer that reads data and does...


Like I previously indicated, multiple disk reads are not necessary, and can be detrimental to performance.

cpp_prgmer wrote:
CString wud manage the hassles of mem mgmt and u have read all the data w/o any allocation work by urself.


Yes, CString does this, but how much trouble is it to use the new operator once with the tradeoff being less disk I/O? Furthermore, the CString += buffer statement can be a lot more expensive than a single use of the new operator.

cpp_prgmer wrote:
Does CString have any limitations of not being able 2 store large data or newline probs etc??


No.


"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb


Questionhow to make a file use unicode in windows 98?? Pin
ebinaini24-Jan-06 15:19
ebinaini24-Jan-06 15:19 
AnswerRe: how to make a file use unicode in windows 98?? Pin
Prakash Nadar24-Jan-06 18:15
Prakash Nadar24-Jan-06 18:15 
AnswerRe: how to make a file use unicode in windows 98?? Pin
<color>Aljechin 24-Jan-06 19:38
<color>Aljechin 24-Jan-06 19:38 
QuestionRe: how to make a file use unicode in windows 98?? Pin
David Crow25-Jan-06 5:29
David Crow25-Jan-06 5:29 
Questionhow to make a window always stay on the top Pin
the Jimmy24-Jan-06 13:40
the Jimmy24-Jan-06 13:40 
AnswerRe: how to make a window always stay on the top Pin
Axonn Echysttas24-Jan-06 13:43
Axonn Echysttas24-Jan-06 13:43 
GeneralRe: how to make a window always stay on the top Pin
the Jimmy24-Jan-06 16:04
the Jimmy24-Jan-06 16:04 
GeneralRe: how to make a window always stay on the top Pin
Axonn Echysttas24-Jan-06 19:43
Axonn Echysttas24-Jan-06 19:43 
GeneralRe: how to make a window always stay on the top Pin
the Jimmy24-Jan-06 20:53
the Jimmy24-Jan-06 20:53 
GeneralRe: how to make a window always stay on the top Pin
Axonn Echysttas24-Jan-06 21:51
Axonn Echysttas24-Jan-06 21:51 
Questionfloat to binary Pin
P1P3R24-Jan-06 12:24
P1P3R24-Jan-06 12:24 
AnswerRe: float to binary Pin
Joshua Quick24-Jan-06 12:37
Joshua Quick24-Jan-06 12:37 
GeneralRe: float to binary Pin
P1P3R24-Jan-06 15:22
P1P3R24-Jan-06 15:22 
GeneralRe: float to binary Pin
Joshua Quick24-Jan-06 15:29
Joshua Quick24-Jan-06 15:29 
GeneralRe: float to binary Pin
P1P3R24-Jan-06 15:38
P1P3R24-Jan-06 15:38 
QuestionSubclassing problem: WM_LBUTTONDOWN is missing Pin
Axonn Echysttas24-Jan-06 12:17
Axonn Echysttas24-Jan-06 12:17 
AnswerRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
sps-itsec4624-Jan-06 12:43
sps-itsec4624-Jan-06 12:43 

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.