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

C / C++ / MFC

 
GeneralAppeding text in rich edit control on Japanese/chinese OS Pin
rajeev_kc11-Jun-04 12:38
rajeev_kc11-Jun-04 12:38 
GeneralRe: Appeding text in rich edit control on Japanese/chinese OS Pin
Zeeshan Bilal11-Jun-04 23:44
Zeeshan Bilal11-Jun-04 23:44 
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 
Hi!

I've just written my small framework (CApplication) to create a simple Window and waiting for messages.
It's doing nothing more but a RegisterClassEx, CreateWindow and ShowWindow.

The message pump is as follows:
while(PeekMessage(&msg, NULL, 0, 0,PM_REMOVE) || !g_App.g_AppDone)
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);

		// Not yet implemented
		// g_D3D.Render();
	}


The strange this is, once started the app takes up 50% of CPU time and 1.6megs of RAM - for a simple window being idle Eek! | :eek:

What the hell is going wrong?

regards

modified 12-Sep-18 21:01pm.

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 
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 

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.