Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralColored Text in win32 window + scroll Pin
Member 382549313-Mar-08 4:01
Member 382549313-Mar-08 4:01 
GeneralRe: Colored Text in win32 window + scroll Pin
led mike13-Mar-08 4:04
led mike13-Mar-08 4:04 
GeneralRe: Colored Text in win32 window + scroll Pin
Member 382549313-Mar-08 4:16
Member 382549313-Mar-08 4:16 
GeneralRe: Colored Text in win32 window + scroll Pin
Demian Panello13-Mar-08 4:59
Demian Panello13-Mar-08 4:59 
GeneralRe: Colored Text in win32 window + scroll Pin
led mike13-Mar-08 5:22
led mike13-Mar-08 5:22 
Generalwhy are junk char appended while writing CString to CFile Pin
ptr_Electron13-Mar-08 3:54
ptr_Electron13-Mar-08 3:54 
GeneralRe: why are junk char appended while writing CString to CFile Pin
Rajkumar R13-Mar-08 3:58
Rajkumar R13-Mar-08 3:58 
GeneralRe: why are junk char appended while writing CString to CFile Pin
ptr_Electron13-Mar-08 4:04
ptr_Electron13-Mar-08 4:04 
Pls find the code here

strLine.Format("%s %d %d %d",strAbc,dDlgResID,dwData,nCmd);
strLine.TrimRight();
strLine=strLine+"\r\n";

CFile file;
file.Open("c:\\some.txt", CFile::modeCreate|CFile::modeNoTruncate|CFile::modeReadWrite);
file.SeekToEnd();
file.Write(strLine,strLine.GetLength());
GeneralRe: why are junk char appended while writing CString to CFile Pin
timpa_work13-Mar-08 5:18
timpa_work13-Mar-08 5:18 
GeneralRe: why are junk char appended while writing CString to CFile Pin
David Crow13-Mar-08 5:43
David Crow13-Mar-08 5:43 
GeneralRe: why are junk char appended while writing CString to CFile Pin
krmed13-Mar-08 5:27
krmed13-Mar-08 5:27 
GeneralRe: why are junk char appended while writing CString to CFile Pin
David Crow13-Mar-08 5:44
David Crow13-Mar-08 5:44 
GeneralRe: why are junk char appended while writing CString to CFile Pin
krmed13-Mar-08 6:15
krmed13-Mar-08 6:15 
GeneralRe: why are junk char appended while writing CString to CFile Pin
David Crow13-Mar-08 7:49
David Crow13-Mar-08 7:49 
GeneralRe: why are junk char appended while writing CString to CFile Pin
Stephen Hewitt13-Mar-08 14:45
Stephen Hewitt13-Mar-08 14:45 
GeneralRe: why are junk char appended while writing CString to CFile Pin
krmed14-Mar-08 0:37
krmed14-Mar-08 0:37 
GeneralRe: why are junk char appended while writing CString to CFile Pin
Stephen Hewitt16-Mar-08 12:58
Stephen Hewitt16-Mar-08 12:58 
GeneralRe: why are junk char appended while writing CString to CFile Pin
krmed17-Mar-08 0:35
krmed17-Mar-08 0:35 
GeneralRe: why are junk char appended while writing CString to CFile Pin
Stephen Hewitt17-Mar-08 13:11
Stephen Hewitt17-Mar-08 13:11 
GeneralRe: why are junk char appended while writing CString to CFile Pin
David Crow13-Mar-08 7:48
David Crow13-Mar-08 7:48 
GeneralRe: why are junk char appended while writing CString to CFile Pin
CPallini13-Mar-08 3:59
mveCPallini13-Mar-08 3:59 
GeneralRe: why are junk char appended while writing CString to CFile Pin
ptr_Electron13-Mar-08 4:08
ptr_Electron13-Mar-08 4:08 
GeneralRe: why are junk char appended while writing CString to CFile Pin
CPallini13-Mar-08 4:21
mveCPallini13-Mar-08 4:21 
GeneralRe: why are junk char appended while writing CString to CFile Pin
Rajkumar R13-Mar-08 4:22
Rajkumar R13-Mar-08 4:22 
GeneralRe: why are junk char appended while writing CString to CFile Pin
ptr_Electron13-Mar-08 4:26
ptr_Electron13-Mar-08 4:26 

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.