Click here to Skip to main content
15,887,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: looking for particular xp color Pin
Marcus Spitzmiller30-Nov-04 4:00
Marcus Spitzmiller30-Nov-04 4:00 
GeneralRe: looking for particular xp color Pin
dude7730-Nov-04 4:33
dude7730-Nov-04 4:33 
GeneralRe: looking for particular xp color Pin
Iain Clarke, Warrior Programmer30-Nov-04 3:50
Iain Clarke, Warrior Programmer30-Nov-04 3:50 
GeneralRe: looking for particular xp color Pin
Iain Clarke, Warrior Programmer30-Nov-04 4:08
Iain Clarke, Warrior Programmer30-Nov-04 4:08 
GeneralRe: looking for particular xp color Pin
dude7730-Nov-04 4:23
dude7730-Nov-04 4:23 
GeneralRe: looking for particular xp color Pin
Iain Clarke, Warrior Programmer30-Nov-04 5:19
Iain Clarke, Warrior Programmer30-Nov-04 5:19 
GeneralRe: looking for particular xp color Pin
dude7730-Nov-04 5:56
dude7730-Nov-04 5:56 
QuestionHow to detect Windows shutting down Pin
normanS30-Nov-04 0:16
normanS30-Nov-04 0:16 
I have a C program, using Visual C++6 development environment, running under Windows 98. I want to write some finalisation information and close a logging file when the program closes.

To do this, I watch for WM_QUIT in the message loop in WinMain(), and when this arrives, I write to the file and close it

This works fine when I shut down my program "normally" (click on "close" button or File / Exit), but when my program is running, and the user shuts down Windows, I do not detect this, so the finalisation info is not written.

How can I detect Windows shutting down? (as I said, preferably at the SDK level.)

AnswerRe: How to detect Windows shutting down Pin
ThatsAlok30-Nov-04 0:36
ThatsAlok30-Nov-04 0:36 
GeneralRe: How to detect Windows shutting down Pin
normanS30-Nov-04 19:19
normanS30-Nov-04 19:19 
GeneralDocking deskband on the right side of the window Pin
kumarbp30-Nov-04 0:02
kumarbp30-Nov-04 0:02 
GeneralMFC Dialog Box Caption Pin
shijuck29-Nov-04 23:57
shijuck29-Nov-04 23:57 
GeneralRe: MFC Dialog Box Caption Pin
Iain Clarke, Warrior Programmer30-Nov-04 0:44
Iain Clarke, Warrior Programmer30-Nov-04 0:44 
GeneralDisabling ALT-TAB Pin
Atlence29-Nov-04 22:48
Atlence29-Nov-04 22:48 
GeneralFormat Conversion Pin
Anonymous29-Nov-04 22:46
Anonymous29-Nov-04 22:46 
GeneralRe: Format Conversion Pin
Arsalan Malik29-Nov-04 23:09
Arsalan Malik29-Nov-04 23:09 
GeneralRe: Format Conversion Pin
David Crow30-Nov-04 3:03
David Crow30-Nov-04 3:03 
GeneralDialog Resource Problem Pin
Member 1697729-Nov-04 21:51
Member 1697729-Nov-04 21:51 
Questionhow to restricted browser Pin
vc-programmer-29-Nov-04 21:43
vc-programmer-29-Nov-04 21:43 
AnswerRe: how to restricted browser Pin
ThatsAlok30-Nov-04 0:58
ThatsAlok30-Nov-04 0:58 
Questionwhat the hell is this grammar all about Pin
LiYS29-Nov-04 21:20
LiYS29-Nov-04 21:20 
AnswerRe: what the hell is this grammar all about Pin
Steve S29-Nov-04 21:34
Steve S29-Nov-04 21:34 
GeneralRe: what the hell is this grammar all about Pin
LiYS29-Nov-04 21:45
LiYS29-Nov-04 21:45 
GeneralRe: what the hell is this grammar all about Pin
benjymous29-Nov-04 22:38
benjymous29-Nov-04 22:38 
GeneralRe: what the hell is this grammar all about Pin
LiYS29-Nov-04 22:53
LiYS29-Nov-04 22:53 

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.