Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Win32 worth it? Pin
ThatsAlok16-Feb-06 2:46
ThatsAlok16-Feb-06 2:46 
GeneralRe: Win32 worth it? Pin
Blake Miller16-Feb-06 12:21
Blake Miller16-Feb-06 12:21 
GeneralRe: Win32 worth it? Pin
Blake Miller16-Feb-06 12:19
Blake Miller16-Feb-06 12:19 
AnswerRe: Win32 worth it? Pin
Ashutosh_shashi15-Feb-06 17:42
Ashutosh_shashi15-Feb-06 17:42 
GeneralRe: Win32 worth it? Pin
Zanathel16-Feb-06 3:25
Zanathel16-Feb-06 3:25 
QuestionDebug Assertion failed Pin
cuteee15-Feb-06 10:28
cuteee15-Feb-06 10:28 
QuestionRe: Debug Assertion failed Pin
David Crow16-Feb-06 3:29
David Crow16-Feb-06 3:29 
QuestionCPU usage 100% Pin
lynchspawn15-Feb-06 10:15
lynchspawn15-Feb-06 10:15 
I have been using a simple routine to wait while connected hardware is performing a reset, ...

The routine is:
<br />
DWORD stop_time =  GetTickCount() + iCount;<br />
while ((long)(GetTickCount() - stop_time) < 0L){<br />
    MSG msg;<br />
    if (PeekMessage(&msg,NULL,0,0,PM_REMOVE)) {<br />
        TranslateMessage(&msg);<br />
        DispatchMessage(&msg);<br />
    }<br />
}<br />


Someone has complained that the task manager in XP is showing that the CPU usage goes to 100% during this wait period. Do I need to add a sleep in there or something else to prevent this?
AnswerRe: CPU usage 100% Pin
Andy Moore15-Feb-06 10:25
Andy Moore15-Feb-06 10:25 
AnswerRe: CPU usage 100% Pin
Stephen Hewitt15-Feb-06 11:29
Stephen Hewitt15-Feb-06 11:29 
AnswerRe: CPU usage 100% Pin
Michael Dunn15-Feb-06 12:04
sitebuilderMichael Dunn15-Feb-06 12:04 
Questionoperator overloading question Pin
civicrico2315-Feb-06 9:40
civicrico2315-Feb-06 9:40 
AnswerRe: operator overloading question Pin
mylzw15-Feb-06 12:42
mylzw15-Feb-06 12:42 
QuestionSocket:: FD_ACCEPT and FD_CONNECT event Pin
transoft15-Feb-06 6:01
transoft15-Feb-06 6:01 
AnswerRe: Socket:: FD_ACCEPT and FD_CONNECT event Pin
James R. Twine15-Feb-06 6:13
James R. Twine15-Feb-06 6:13 
QuestionSplitter window question... Pin
RobJones15-Feb-06 6:00
RobJones15-Feb-06 6:00 
AnswerRe: Splitter window question... Pin
RChin15-Feb-06 7:01
RChin15-Feb-06 7:01 
AnswerRe: Splitter window question... Pin
David Crow15-Feb-06 7:03
David Crow15-Feb-06 7:03 
QuestionEvents and classes Pin
masnu15-Feb-06 4:29
masnu15-Feb-06 4:29 
AnswerRe: Events and classes Pin
Blake Miller16-Feb-06 12:26
Blake Miller16-Feb-06 12:26 
QuestionDefault button Pin
Wim Engberts15-Feb-06 4:18
Wim Engberts15-Feb-06 4:18 
AnswerRe: Default button Pin
basementman15-Feb-06 4:23
basementman15-Feb-06 4:23 
GeneralRe: Default button Pin
Wim Engberts15-Feb-06 4:26
Wim Engberts15-Feb-06 4:26 
AnswerRe: Default button Pin
toxcct15-Feb-06 4:36
toxcct15-Feb-06 4:36 
QuestionACS Stream Pin
yamunasenthilvel15-Feb-06 3:56
yamunasenthilvel15-Feb-06 3:56 

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.