Click here to Skip to main content
15,916,692 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Post Build step Pin
toxcct7-May-07 4:55
toxcct7-May-07 4:55 
GeneralRe: Post Build step Pin
tom groezer7-May-07 20:41
tom groezer7-May-07 20:41 
QuestionStrip file lines? Pin
bosfan7-May-07 3:45
bosfan7-May-07 3:45 
QuestionRe: Strip file lines? Pin
David Crow7-May-07 3:54
David Crow7-May-07 3:54 
AnswerRe: Strip file lines? Pin
toxcct7-May-07 3:58
toxcct7-May-07 3:58 
GeneralRe: Strip file lines? [modified] Pin
bosfan7-May-07 4:26
bosfan7-May-07 4:26 
GeneralRe: Strip file lines? Pin
Hans Dietrich7-May-07 4:45
mentorHans Dietrich7-May-07 4:45 
GeneralRe: Strip file lines? Pin
bosfan7-May-07 4:54
bosfan7-May-07 4:54 
Hi,
my first error, this with symbols, i read wrong maybe.
Ok, here is the first try:
char acbuff[4097];
// in this case i have this symbols at end of string(csFileContent in a loop)
while(0 != (iReadSize = stdFile.Read(contentbuffer, 4096)))
{	
	csFileContent += contentbuffer;
	*contentbuffer = 0;	
	iReadSize = 0;
}
// than i add this: contentbuffer[iReadSize] = '\0';
while(0 != (iReadSize = stdFile.Read(contentbuffer, 4096)))
{
	contentbuffer[iReadSize] = '\0'; // new added line
	csFileContent += contentbuffer;
	*contentbuffer = 0;	
	iReadSize = 0;
}

now is better with my content of CString.
Still the part with parsing.

ragards
termal
QuestionRe: Strip file lines? Pin
David Crow7-May-07 5:14
David Crow7-May-07 5:14 
AnswerRe: Strip file lines? Pin
bosfan7-May-07 5:20
bosfan7-May-07 5:20 
GeneralRe: Strip file lines? Pin
toxcct7-May-07 5:30
toxcct7-May-07 5:30 
GeneralRe: Strip file lines? Pin
bosfan7-May-07 5:36
bosfan7-May-07 5:36 
GeneralRe: Strip file lines? Pin
toxcct7-May-07 5:47
toxcct7-May-07 5:47 
GeneralRe: Strip file lines? Pin
David Crow7-May-07 6:19
David Crow7-May-07 6:19 
GeneralRe: Strip file lines? Pin
bosfan7-May-07 21:32
bosfan7-May-07 21:32 
GeneralRe: Strip file lines? [modified] Pin
Mark Salsbery7-May-07 7:01
Mark Salsbery7-May-07 7:01 
GeneralRe: Strip file lines? Pin
toxcct7-May-07 7:16
toxcct7-May-07 7:16 
GeneralRe: Strip file lines? Pin
Mark Salsbery8-May-07 4:10
Mark Salsbery8-May-07 4:10 
GeneralRe: Strip file lines? Pin
Mark Salsbery8-May-07 4:13
Mark Salsbery8-May-07 4:13 
GeneralRe: Strip file lines? Pin
bosfan7-May-07 21:30
bosfan7-May-07 21:30 
QuestionLinker Error LNK2005 Pin
tom groezer7-May-07 3:30
tom groezer7-May-07 3:30 
AnswerRe: Linker Error LNK2005 Pin
jhwurmbach7-May-07 4:20
jhwurmbach7-May-07 4:20 
GeneralRe: Linker Error LNK2005 Pin
tom groezer7-May-07 4:51
tom groezer7-May-07 4:51 
GeneralRe: Linker Error LNK2005 Pin
jhwurmbach7-May-07 4:54
jhwurmbach7-May-07 4:54 
AnswerRe: Linker Error LNK2005 Pin
Michael Dunn7-May-07 8:41
sitebuilderMichael Dunn7-May-07 8:41 

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.