Click here to Skip to main content
15,892,480 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiontrim heading and trailing space Pin
George_George20-Oct-07 21:52
George_George20-Oct-07 21:52 
AnswerRe: trim heading and trailing space Pin
Christian Graus20-Oct-07 23:40
protectorChristian Graus20-Oct-07 23:40 
GeneralRe: trim heading and trailing space Pin
George_George21-Oct-07 3:18
George_George21-Oct-07 3:18 
AnswerRe: trim heading and trailing space Pin
henk21cm20-Oct-07 23:46
henk21cm20-Oct-07 23:46 
GeneralRe: trim heading and trailing space Pin
George_George21-Oct-07 3:16
George_George21-Oct-07 3:16 
QuestionFile read problem Pin
pri_skit20-Oct-07 20:05
pri_skit20-Oct-07 20:05 
AnswerRe: File read problem Pin
karle20-Oct-07 21:36
karle20-Oct-07 21:36 
AnswerRe: File read problem Pin
KEL322-Oct-07 1:49
KEL322-Oct-07 1:49 
Try the following to write:
CString StringToWrite;
StringToWrite="ABC";//e.g.
f.Write (StringToWrite.GetBuffer(20),StringToWrite.GetLength()+1);

Try the following to read:

CString str;
char B;
for(i=0;i<1000;i++){
f.Read(&B,sizeof(B));
str+=B;
if(B=='\0')break;
}

Not the best way to do it, but if it work U R OK!


kostas KEL

QuestionRe: File read problem Pin
David Crow22-Oct-07 5:25
David Crow22-Oct-07 5:25 
QuestionRe: File read problem Pin
David Crow22-Oct-07 5:28
David Crow22-Oct-07 5:28 
AnswerRe: File read problem Pin
KEL322-Oct-07 22:00
KEL322-Oct-07 22:00 
GeneralRe: File read problem Pin
David Crow23-Oct-07 2:53
David Crow23-Oct-07 2:53 
GeneralRe: File read problem Pin
KEL324-Oct-07 2:21
KEL324-Oct-07 2:21 
QuestionCalculate Greatset common divider Pin
shabbi8920-Oct-07 19:15
shabbi8920-Oct-07 19:15 
AnswerRe: Calculate Greatset common divider Pin
cp987620-Oct-07 20:29
cp987620-Oct-07 20:29 
QuestionRe: Calculate Greatset common divider Pin
David Crow22-Oct-07 5:30
David Crow22-Oct-07 5:30 
QuestionIsolating mathematical functions from an input string [modified] Pin
J)ker20-Oct-07 15:57
J)ker20-Oct-07 15:57 
AnswerRe: Isolating mathematical functions from an input string Pin
Christian Graus20-Oct-07 16:57
protectorChristian Graus20-Oct-07 16:57 
AnswerRe: Isolating mathematical functions from an input string Pin
KEL322-Oct-07 22:20
KEL322-Oct-07 22:20 
QuestionHow to make a dll re-entrant? Pin
henk21cm20-Oct-07 10:12
henk21cm20-Oct-07 10:12 
AnswerRe: How to make a dll re-entrant? Pin
Abdellatif_El_Khlifi20-Oct-07 11:18
Abdellatif_El_Khlifi20-Oct-07 11:18 
AnswerRe: How to make a dll re-entrant? Pin
Mark Salsbery20-Oct-07 12:55
Mark Salsbery20-Oct-07 12:55 
AnswerRe: How to make a dll re-entrant? Pin
karle20-Oct-07 21:39
karle20-Oct-07 21:39 
GeneralRe: How to make a dll re-entrant? Pin
henk21cm20-Oct-07 23:05
henk21cm20-Oct-07 23:05 
AnswerRe: How to make a dll re-entrant? Pin
knockNrod2-Sep-10 3:10
knockNrod2-Sep-10 3:10 

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.