Click here to Skip to main content
15,915,076 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File Sharing (not) Pin
David Crow2-Jul-09 5:33
David Crow2-Jul-09 5:33 
QuestionClass Template in Visual C++ Pin
emira671-Jul-09 4:32
emira671-Jul-09 4:32 
AnswerRe: Class Template in Visual C++ Pin
led mike1-Jul-09 4:40
led mike1-Jul-09 4:40 
AnswerRe: Class Template in Visual C++ Pin
David Crow1-Jul-09 4:47
David Crow1-Jul-09 4:47 
AnswerRe: Class Template in Visual C++ Pin
Stuart Dootson1-Jul-09 4:58
professionalStuart Dootson1-Jul-09 4:58 
Questiondll function call in vc++2008 clr bse apllication Pin
PIYUSH19661-Jul-09 4:08
PIYUSH19661-Jul-09 4:08 
QuestionRe: dll function call in vc++2008 clr bse apllication Pin
led mike1-Jul-09 4:35
led mike1-Jul-09 4:35 
QuestionDownload from Rapidshare! Pin
Hadi Dayvary1-Jul-09 3:49
professionalHadi Dayvary1-Jul-09 3:49 
QuestionMFC CSocket class! Pin
Hadi Dayvary1-Jul-09 3:47
professionalHadi Dayvary1-Jul-09 3:47 
AnswerRe: MFC CSocket class! Pin
led mike1-Jul-09 4:28
led mike1-Jul-09 4:28 
GeneralRe: MFC CSocket class! Pin
Hadi Dayvary1-Jul-09 5:16
professionalHadi Dayvary1-Jul-09 5:16 
GeneralRe: MFC CSocket class! Pin
led mike1-Jul-09 5:39
led mike1-Jul-09 5:39 
GeneralRe: MFC CSocket class! [modified] Pin
Moak18-Jul-09 4:36
Moak18-Jul-09 4:36 
GeneralRe: MFC CSocket class! Pin
Hadi Dayvary18-Jul-09 5:14
professionalHadi Dayvary18-Jul-09 5:14 
QuestionChange dialog bg-color? Pin
bosfan1-Jul-09 3:35
bosfan1-Jul-09 3:35 
AnswerRe: Change dialog bg-color? Pin
SandipG 1-Jul-09 4:15
SandipG 1-Jul-09 4:15 
GeneralRe: Change dialog bg-color? [modified] Pin
bosfan1-Jul-09 4:35
bosfan1-Jul-09 4:35 
GeneralRe: Change dialog bg-color? Pin
«_Superman_»1-Jul-09 16:46
professional«_Superman_»1-Jul-09 16:46 
GeneralRe: Change dialog bg-color? Pin
bosfan1-Jul-09 21:33
bosfan1-Jul-09 21:33 
QuestionLogger class -> write to file too slow Pin
Souldrift1-Jul-09 3:30
Souldrift1-Jul-09 3:30 
AnswerRe: Logger class -> write to file too slow Pin
Stuart Dootson1-Jul-09 3:34
professionalStuart Dootson1-Jul-09 3:34 
AnswerRe: Logger class -> write to file too slow Pin
Cedric Moonen1-Jul-09 3:35
Cedric Moonen1-Jul-09 3:35 
AnswerRe: Logger class -> write to file too slow Pin
Michael Schubert1-Jul-09 4:01
Michael Schubert1-Jul-09 4:01 
AnswerRe: Logger class -> write to file too slow Pin
David Crow1-Jul-09 4:52
David Crow1-Jul-09 4:52 
AnswerRe: Logger class -> write to file too slow Pin
Joe Woodbury1-Jul-09 6:06
professionalJoe Woodbury1-Jul-09 6:06 
Get rid of buffered I/O calls.

Use either purely native calls (CreateFile()) or at least the CRT open function.

If that's still too slow, using asynchronous writes (yes, they are tricky, but they do work.) Do understand that you may need a mechanism to throw away messages else you're logging could get permanently behind.

An alternative is to write log string to a buffer and when it passes 4k, do an asynchronous write.

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.