Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Thread and ON_WM_TIMER Pin
David Crow2-May-07 9:06
David Crow2-May-07 9:06 
AnswerRe: Thread and ON_WM_TIMER Pin
CDRAIN2-May-07 11:18
CDRAIN2-May-07 11:18 
GeneralRe: Thread and ON_WM_TIMER Pin
David Crow3-May-07 2:46
David Crow3-May-07 2:46 
GeneralRe: Thread and ON_WM_TIMER Pin
led mike3-May-07 5:28
led mike3-May-07 5:28 
QuestionHow increase buffer size to read binary data and not damage performance Pin
yefimrz2-May-07 7:34
yefimrz2-May-07 7:34 
QuestionRe: How increase buffer size to read binary data and not damage performance Pin
Mark Salsbery2-May-07 9:19
Mark Salsbery2-May-07 9:19 
AnswerRe: How increase buffer size to read binary data and not damage performance Pin
yefimrz2-May-07 9:54
yefimrz2-May-07 9:54 
GeneralRe: How increase buffer size to read binary data and not damage performance Pin
Mark Salsbery2-May-07 10:20
Mark Salsbery2-May-07 10:20 
Try _O_BINARY|_O_RDONLY|_O_SEQUENTIAL.

Internally, the CRT uses the Windows CreateFile() API to open the file when you call _open().

_O_SEQUENTIAL causes the FILE_FLAG_SEQUENTIAL_SCAN flag to be added to the dwFlagsAndAttributes
parameter passed to ::CreateFile(). Whether the system actually uses this flag, I don't know Smile | :)

That's the only place I can see to possibly optimize buffering, aside from disabling all system
buffering and handling it yourself.

Are you sure it's not just a matter of reading 5 times as many bytes at a time from a relatively
slow device?

Mark




"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

QuestionHow to use strcpy to modify char** ? Pin
Joe Smith IX2-May-07 7:24
Joe Smith IX2-May-07 7:24 
AnswerRe: How to use strcpy to modify char** ? Pin
Michael Dunn2-May-07 8:13
sitebuilderMichael Dunn2-May-07 8:13 
AnswerRe: How to use strcpy to modify char** ? Pin
Peter Weyzen2-May-07 8:38
Peter Weyzen2-May-07 8:38 
AnswerRe: How to use strcpy to modify char** ? Pin
toxcct2-May-07 9:22
toxcct2-May-07 9:22 
GeneralRe: How to use strcpy to modify char** ? Pin
Mark Salsbery2-May-07 9:33
Mark Salsbery2-May-07 9:33 
GeneralRe: How to use strcpy to modify char** ? Pin
Michael Dunn2-May-07 11:22
sitebuilderMichael Dunn2-May-07 11:22 
AnswerRe: How to use strcpy to modify char** ? Pin
prasad_som2-May-07 18:33
prasad_som2-May-07 18:33 
QuestionMFC avi Brightness control Pin
YUANGE2-May-07 6:50
YUANGE2-May-07 6:50 
AnswerRe: MFC avi Brightness control Pin
Hamid_RT2-May-07 7:37
Hamid_RT2-May-07 7:37 
Questionsql string format Pin
hero19952-May-07 5:44
hero19952-May-07 5:44 
AnswerRe: sql string format Pin
James R. Twine2-May-07 5:59
James R. Twine2-May-07 5:59 
AnswerRe: sql string format Pin
Hamid_RT2-May-07 7:29
Hamid_RT2-May-07 7:29 
QuestionAFX_MANAGE_STATE Usage? Pin
rajandpayal2-May-07 4:37
rajandpayal2-May-07 4:37 
AnswerRe: AFX_MANAGE_STATE Usage? Pin
Mark Salsbery2-May-07 5:14
Mark Salsbery2-May-07 5:14 
QuestionSafly Remove USB Pin
VC_RYK2-May-07 2:44
VC_RYK2-May-07 2:44 
AnswerRe: Safly Remove USB Pin
Arman S.2-May-07 3:07
Arman S.2-May-07 3:07 
GeneralRe: Safly Remove USB Pin
VC_RYK2-May-07 18:23
VC_RYK2-May-07 18:23 

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.