Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Call Class Members from Interrupt Routine Pin
enhzflep1-Mar-12 22:44
enhzflep1-Mar-12 22:44 
GeneralRe: Call Class Members from Interrupt Routine Pin
Erudite_Eric1-Mar-12 22:55
Erudite_Eric1-Mar-12 22:55 
GeneralRe: Call Class Members from Interrupt Routine Pin
Richard MacCutchan29-Feb-12 5:34
mveRichard MacCutchan29-Feb-12 5:34 
GeneralRe: Call Class Members from Interrupt Routine Pin
Jochen Arndt29-Feb-12 5:59
professionalJochen Arndt29-Feb-12 5:59 
GeneralRe: Call Class Members from Interrupt Routine Pin
Andy20229-Feb-12 6:10
Andy20229-Feb-12 6:10 
GeneralRe: Call Class Members from Interrupt Routine Pin
Erudite_Eric1-Mar-12 22:39
Erudite_Eric1-Mar-12 22:39 
GeneralRe: Call Class Members from Interrupt Routine Pin
Andy2022-Mar-12 0:15
Andy2022-Mar-12 0:15 
GeneralRe: Call Class Members from Interrupt Routine Pin
Erudite_Eric4-Mar-12 21:29
Erudite_Eric4-Mar-12 21:29 
Windows timer resuloution is about 10 ms, so if you want a timer at 20 you can do ith with the windows timer.

Less than this you have to go to specific HW, or, on later windows OSs, apparently you can change the timer, but it is apparently illadvised.

So yes, your solution will incur a performance hit because of the kernel to user transition.

I took over a sw and driver design once that wrote data byte by byte to a RAM pack. It took 30 seconds to fill the thing with data.

I changed it to writing 2 k packets at a time. It too 250 ms to fill it with data.

Thats the cost of switching form user to kernel to user every byte, as oposed to evert 2k bytes. Heavy eh?
==============================

Nothing to say.

GeneralRe: Call Class Members from Interrupt Routine Pin
Jochen Arndt29-Feb-12 6:00
professionalJochen Arndt29-Feb-12 6:00 
GeneralRe: Call Class Members from Interrupt Routine Pin
Erudite_Eric1-Mar-12 22:31
Erudite_Eric1-Mar-12 22:31 
GeneralRe: Call Class Members from Interrupt Routine Pin
enhzflep1-Mar-12 22:41
enhzflep1-Mar-12 22:41 
AnswerRe: Call Class Members from Interrupt Routine Pin
JackDingler2-Mar-12 7:41
JackDingler2-Mar-12 7:41 
Questionview object in dialog when can be used Pin
appollosputnik28-Feb-12 20:43
appollosputnik28-Feb-12 20:43 
AnswerRe: view object in dialog when can be used Pin
CPallini28-Feb-12 21:42
mveCPallini28-Feb-12 21:42 
GeneralRe: view object in dialog when can be used Pin
appollosputnik28-Feb-12 22:44
appollosputnik28-Feb-12 22:44 
GeneralRe: view object in dialog when can be used Pin
CPallini29-Feb-12 0:17
mveCPallini29-Feb-12 0:17 
QuestionHow to insert a "#" to some lines ? Pin
Faez Shingeri28-Feb-12 19:52
Faez Shingeri28-Feb-12 19:52 
AnswerRe: How to insert a "#" to some lines ? Pin
wangningyu28-Feb-12 21:21
wangningyu28-Feb-12 21:21 
GeneralRe: How to insert a "#" to some lines ? Pin
Faez Shingeri28-Feb-12 23:37
Faez Shingeri28-Feb-12 23:37 
QuestionRe: How to insert a "#" to some lines ? Pin
David Crow29-Feb-12 2:46
David Crow29-Feb-12 2:46 
AnswerRe: How to insert a "#" to some lines ? Pin
Faez Shingeri29-Feb-12 18:12
Faez Shingeri29-Feb-12 18:12 
AnswerRe: How to insert a "#" to some lines ? Pin
David Crow1-Mar-12 3:03
David Crow1-Mar-12 3:03 
GeneralRe: How to insert a "#" to some lines ? Pin
Faez Shingeri1-Mar-12 22:41
Faez Shingeri1-Mar-12 22:41 
GeneralRe: How to insert a "#" to some lines ? Pin
David Crow2-Mar-12 2:39
David Crow2-Mar-12 2:39 
GeneralRe: How to insert a "#" to some lines ? Pin
Faez Shingeri5-Mar-12 0:37
Faez Shingeri5-Mar-12 0:37 

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.