Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unlocking a file.. Pin
sharanu25-Feb-08 20:48
sharanu25-Feb-08 20:48 
AnswerRe: Unlocking a file.. Pin
Rajkumar R25-Feb-08 21:42
Rajkumar R25-Feb-08 21:42 
QuestionHow to change the background color of AfxControlBar*, CToolBar's parent window ? Pin
Paresh Chitte25-Feb-08 17:22
Paresh Chitte25-Feb-08 17:22 
GeneralRe: How to change the background color of AfxControlBar*, CToolBar's parent window ? Pin
SandipG 27-Feb-08 22:46
SandipG 27-Feb-08 22:46 
GeneralRe: How to change the background color of AfxControlBar*, CToolBar's parent window ? Pin
Paresh Chitte28-Feb-08 17:27
Paresh Chitte28-Feb-08 17:27 
Questionhow to generate several Gaussian function according to different sigm Pin
gentleguy25-Feb-08 14:30
gentleguy25-Feb-08 14:30 
QuestionParallel Port Polling Pin
GlenET25-Feb-08 10:21
GlenET25-Feb-08 10:21 
GeneralRe: Parallel Port Polling Pin
Mark Salsbery25-Feb-08 11:04
Mark Salsbery25-Feb-08 11:04 
Does your function contain the polling loop or does it need to be called periodically?

If the function contains the loop, then your UI is never going to appear unless you provide a way for
messages to get dispatched to windows.

You could put your loop on a separate thread.  Note that a "busy" loop will consume nearly all your CPU...
not very friendly to UI of your app or other apps.

You could also use a timer and periodically poll instead of using all the CPU polling.


Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Parallel Port Polling Pin
GlenET26-Feb-08 7:21
GlenET26-Feb-08 7:21 
GeneralRe: Parallel Port Polling Pin
Mark Salsbery26-Feb-08 7:51
Mark Salsbery26-Feb-08 7:51 
Generallistview item height Pin
Jim Crafton25-Feb-08 8:19
Jim Crafton25-Feb-08 8:19 
GeneralRe: listview item height Pin
Dr. Emmett Brown25-Feb-08 10:26
Dr. Emmett Brown25-Feb-08 10:26 
GeneralRe: listview item height Pin
David Crow25-Feb-08 11:30
David Crow25-Feb-08 11:30 
GeneralRe: listview item height Pin
Michael Dunn25-Feb-08 12:43
sitebuilderMichael Dunn25-Feb-08 12:43 
Generalconstructor / destructor in template class Pin
act_x25-Feb-08 7:33
act_x25-Feb-08 7:33 
GeneralRe: constructor / destructor in template class Pin
CPallini25-Feb-08 7:38
mveCPallini25-Feb-08 7:38 
GeneralRe: constructor / destructor in template class Pin
act_x25-Feb-08 7:52
act_x25-Feb-08 7:52 
GeneralRe: constructor / destructor in template class Pin
David Crow25-Feb-08 7:41
David Crow25-Feb-08 7:41 
QuestionAdding trend-line to MSCHART in C++ Pin
Member 343670325-Feb-08 5:33
Member 343670325-Feb-08 5:33 
GeneralGet m_nIDHelp of active dialog from CMainFrame in MDI application Pin
ptr_Electron25-Feb-08 5:21
ptr_Electron25-Feb-08 5:21 
GeneralRe: Get m_nIDHelp of active dialog from CMainFrame in MDI application Pin
Dr. Emmett Brown25-Feb-08 5:30
Dr. Emmett Brown25-Feb-08 5:30 
GeneralRe: Get m_nIDHelp of active dialog from CMainFrame in MDI application Pin
ptr_Electron25-Feb-08 23:15
ptr_Electron25-Feb-08 23:15 
GeneralHide the dilog in dialog based application. Pin
vicky0000025-Feb-08 3:18
vicky0000025-Feb-08 3:18 
GeneralRe: Hide the dilog in dialog based application. Pin
Maxwell Chen25-Feb-08 3:23
Maxwell Chen25-Feb-08 3:23 
GeneralRe: Hide the dilog in dialog based application. Pin
vicky0000025-Feb-08 17:54
vicky0000025-Feb-08 17:54 

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.