Click here to Skip to main content
15,920,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGetDriveType etc. Pin
Todd Smith11-Jun-04 12:11
Todd Smith11-Jun-04 12:11 
GeneralRe: GetDriveType etc. Pin
Ravi Bhavnani11-Jun-04 12:31
professionalRavi Bhavnani11-Jun-04 12:31 
GeneralProfiler for VC++ & W98 Pin
CaesarCZ11-Jun-04 11:14
CaesarCZ11-Jun-04 11:14 
GeneralEdit Box for real numbers Pin
Grahamfff11-Jun-04 10:40
Grahamfff11-Jun-04 10:40 
GeneralRe: Edit Box for real numbers Pin
Ravi Bhavnani11-Jun-04 12:53
professionalRavi Bhavnani11-Jun-04 12:53 
General"Empty" Window application behaving very strange Pin
User 665811-Jun-04 9:44
User 665811-Jun-04 9:44 
GeneralRe: "Empty" Window application behaving very strange Pin
David Crow11-Jun-04 10:31
David Crow11-Jun-04 10:31 
GeneralRe: "Empty" Window application behaving very strange Pin
User 665811-Jun-04 10:57
User 665811-Jun-04 10:57 
Thanks, I read the kb article and tried to change my loop. So I changed my message loop to the one identically the samples in the DirectX9 SDK use:

MSG msg;
            ZeroMemory( &msg, sizeof(msg) );
            while( msg.message!=WM_QUIT )
            {
                if( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) )
                {
                    TranslateMessage( &msg );
                    DispatchMessage( &msg );
                }
                else
                    Render();
            }


The DirectX samples use 0% CPU time, mine does 50%.
Furthermore, my app does not react on the [x]-button or "x Close" menu entry in the system menu. Confused | :confused:
/edit: Wait...some of the DirectX SDK samples also consume 50% cpu time - now does it mean the Microsoft programmers are lazy? If yes, how do I make me loop work correctly? Big Grin | :-D

What the heck...!? Frown | :(

modified 12-Sep-18 21:01pm.

GeneralUI design question ( presenting preferences ) Pin
Maximilien11-Jun-04 9:11
Maximilien11-Jun-04 9:11 
GeneralRe: UI design question ( presenting preferences ) Pin
Navin11-Jun-04 9:20
Navin11-Jun-04 9:20 
GeneralRe: UI design question ( presenting preferences ) Pin
Ravi Bhavnani11-Jun-04 12:54
professionalRavi Bhavnani11-Jun-04 12:54 
GeneralRe: UI design question ( presenting preferences ) Pin
Henry miller14-Jun-04 3:10
Henry miller14-Jun-04 3:10 
Questionhow to enable the "ok" button after 8 second in MFC Dialog box Pin
shiva shankar11-Jun-04 8:38
shiva shankar11-Jun-04 8:38 
AnswerRe: how to enable the "ok" button after 8 second in MFC Dialog box Pin
Ravi Bhavnani11-Jun-04 8:49
professionalRavi Bhavnani11-Jun-04 8:49 
AnswerRe: how to enable the "ok" button after 8 second in MFC Dialog box Pin
toxcct13-Jun-04 3:23
toxcct13-Jun-04 3:23 
Generalimage sequence in a window Pin
nyquisttt11-Jun-04 8:13
nyquisttt11-Jun-04 8:13 
GeneralRe: image sequence in a window Pin
David Crow11-Jun-04 9:40
David Crow11-Jun-04 9:40 
QuestionFindWindow is hanging.... help? Pin
Wes Jones11-Jun-04 6:55
Wes Jones11-Jun-04 6:55 
AnswerRe: FindWindow is hanging.... help? Pin
David Crow11-Jun-04 7:24
David Crow11-Jun-04 7:24 
GeneralRe: FindWindow is hanging.... help? Pin
Wes Jones11-Jun-04 7:52
Wes Jones11-Jun-04 7:52 
AnswerRe: FindWindow is hanging.... help? Pin
Navin11-Jun-04 7:48
Navin11-Jun-04 7:48 
GeneralRe: FindWindow is hanging.... help? Pin
Wes Jones11-Jun-04 8:00
Wes Jones11-Jun-04 8:00 
GeneralRe: FindWindow is hanging.... help? Pin
Navin11-Jun-04 8:04
Navin11-Jun-04 8:04 
AnswerRe: FindWindow is hanging.... help? Pin
Neville Franks11-Jun-04 11:40
Neville Franks11-Jun-04 11:40 
GeneralRe: FindWindow is hanging.... help? Pin
Wes Jones11-Jun-04 14:17
Wes Jones11-Jun-04 14:17 

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.