Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Effect Class Pin
Force Code2-Jul-07 11:43
Force Code2-Jul-07 11:43 
GeneralRe: Effect Class Pin
Perspx2-Jul-07 11:53
Perspx2-Jul-07 11:53 
GeneralRe: Effect Class Pin
Force Code2-Jul-07 12:24
Force Code2-Jul-07 12:24 
GeneralRe: Effect Class Pin
Perspx2-Jul-07 21:59
Perspx2-Jul-07 21:59 
GeneralRe: Effect Class Pin
Mark Salsbery2-Jul-07 12:32
Mark Salsbery2-Jul-07 12:32 
GeneralRe: Effect Class Pin
Perspx2-Jul-07 22:01
Perspx2-Jul-07 22:01 
GeneralRe: Effect Class Pin
Mark Salsbery3-Jul-07 5:53
Mark Salsbery3-Jul-07 5:53 
QuestionHow can I ensure that a drive is spinning and ready to write data? Pin
TragicComic2-Jul-07 10:53
TragicComic2-Jul-07 10:53 
Hello,
I am working on an application that streams uncompressed data from high resolution video cameras directly to a hard drive. The amount of data that I am writing is very high, and if I start to write while the drive is idle, I lose a significant number of initial video frames.

Does anyone know a simple way using c++ (on Windows XP) to keep a drive ready to go?

My first thought is to open a file, write some bits, close it and delete it every so often, but I worry that it might just sit in the hard drive buffer without spinning up the drive (and if the data doesn't sit in the HD buffer, it seems like a bit of overkill anyway).

And I guess I also have a follow up question, is it possible to check the drive to see if it is idle, or if it is spun up? I've looked in the windows SDK, but the disk managment functions in the Platform SDK are a little light.

Thanks for the help,
Adam
AnswerRe: How can I ensure that a drive is spinning and ready to write data? Pin
David Crow2-Jul-07 15:07
David Crow2-Jul-07 15:07 
AnswerRe: How can I ensure that a drive is spinning and ready to write data? Pin
Stephen Hewitt2-Jul-07 15:08
Stephen Hewitt2-Jul-07 15:08 
AnswerRe: How can I ensure that a drive is spinning and ready to write data? Pin
Nuxser2-Jul-07 22:19
Nuxser2-Jul-07 22:19 
Questionstring help Pin
dellthinker2-Jul-07 10:52
dellthinker2-Jul-07 10:52 
AnswerRe: string help Pin
_anil_2-Jul-07 14:30
_anil_2-Jul-07 14:30 
QuestionHow to declare a variable of type CRITICAL_SECTION Pin
zipliu2-Jul-07 10:18
zipliu2-Jul-07 10:18 
AnswerRe: How to declare a variable of type CRITICAL_SECTION Pin
zipliu2-Jul-07 10:19
zipliu2-Jul-07 10:19 
AnswerRe: How to declare a variable of type CRITICAL_SECTION Pin
David Crow2-Jul-07 10:49
David Crow2-Jul-07 10:49 
AnswerRe: How to declare a variable of type CRITICAL_SECTION Pin
Mark Salsbery2-Jul-07 12:43
Mark Salsbery2-Jul-07 12:43 
QuestionVariants Pin
tom groezer2-Jul-07 9:24
tom groezer2-Jul-07 9:24 
AnswerRe: Variants Pin
David Crow2-Jul-07 9:41
David Crow2-Jul-07 9:41 
QuestionMFC frame Pin
tom groezer2-Jul-07 9:16
tom groezer2-Jul-07 9:16 
AnswerRe: MFC frame Pin
Mark Salsbery2-Jul-07 9:39
Mark Salsbery2-Jul-07 9:39 
QuestionWindow registeration Pin
tom groezer2-Jul-07 9:00
tom groezer2-Jul-07 9:00 
AnswerRe: Window registeration Pin
David Crow2-Jul-07 9:48
David Crow2-Jul-07 9:48 
AnswerRe: Window registeration Pin
Mark Salsbery2-Jul-07 9:49
Mark Salsbery2-Jul-07 9:49 
QuestionVMR9 & SampleGrabber at the same time , how ? Pin
Akin Ocal2-Jul-07 8:51
Akin Ocal2-Jul-07 8:51 

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.