Click here to Skip to main content
15,914,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I do not repaint window,when resizing. Pin
567890123410-Mar-03 22:45
567890123410-Mar-03 22:45 
GeneralRe: I do not repaint window,when resizing. Pin
keeploading10-Mar-03 23:00
keeploading10-Mar-03 23:00 
GeneralRe: I do not repaint window,when resizing. Pin
TomKat14-Mar-03 16:03
TomKat14-Mar-03 16:03 
QuestionAlternative dialog editor? Pin
roel_10-Mar-03 21:51
roel_10-Mar-03 21:51 
GeneralSetting the Cursor Position Pin
Brit10-Mar-03 21:25
Brit10-Mar-03 21:25 
GeneralRe: Setting the Cursor Position Pin
Hans Ruck10-Mar-03 21:31
Hans Ruck10-Mar-03 21:31 
GeneralRe: Setting the Cursor Position Pin
Brit11-Mar-03 16:25
Brit11-Mar-03 16:25 
GeneralApplication Error Pin
r i s h a b h s10-Mar-03 20:10
r i s h a b h s10-Mar-03 20:10 
dear all
i have written a small app which detects windows shutdows or user logoff using WM_QUERYENDSESSION and runs an application say calculator using CreateProcess(..)
the problem is that i'm getting this error =>
"application cannot initialize because windows station is shutting down"

how do i ensure that the calculator runs whenever a user logs off or shuts down the computer.

the code is=>

case WM_QUERYENDSESSION:
{
Run(); //CreateProcess(...) code
if (lParam & ENDSESSION_LOGOFF)
{
MessageBox(hwnd,"User Logging Off..........", "User LogOff Detected", MB_OK|MB_ICONINFORMATION);
}
else
{
MessageBox(hwnd,"System Shutting Down..........", "System ShutDown Detected", MB_OK|MB_ICONINFORMATION);
}
return 1;
}

am i missing something crucial.
thanx
with Regards


GeneralRe: Application Error Pin
Ryan Binns10-Mar-03 20:31
Ryan Binns10-Mar-03 20:31 
GeneralRe: Application Error Pin
r i s h a b h s10-Mar-03 20:43
r i s h a b h s10-Mar-03 20:43 
GeneralRe: Application Error Pin
Ryan Binns11-Mar-03 19:50
Ryan Binns11-Mar-03 19:50 
GeneralMSN like Emoticon list Pin
Ph@ntom10-Mar-03 19:46
Ph@ntom10-Mar-03 19:46 
GeneralRe: MSN like Emoticon list Pin
Hesham Amin10-Mar-03 21:07
Hesham Amin10-Mar-03 21:07 
GeneralControl subclassing Pin
Shah Shehpori10-Mar-03 19:22
sussShah Shehpori10-Mar-03 19:22 
GeneralRe: Control subclassing Pin
Shog910-Mar-03 19:41
sitebuilderShog910-Mar-03 19:41 
GeneralRe: Control subclassing Pin
TomKat14-Mar-03 16:06
TomKat14-Mar-03 16:06 
QuestionHow to read from Listbox Pin
summo10-Mar-03 19:11
summo10-Mar-03 19:11 
AnswerRe: How to read from Listbox Pin
Nish Nishant10-Mar-03 19:17
sitebuilderNish Nishant10-Mar-03 19:17 
AnswerRe: How to read from Listbox Pin
vikramlinux10-Mar-03 19:23
vikramlinux10-Mar-03 19:23 
QuestionHelp! How to update the resource in an exe file under Win98? Pin
stanley guan10-Mar-03 17:41
stanley guan10-Mar-03 17:41 
AnswerRe: Help! How to update the resource in an exe file under Win98? Pin
vikramlinux10-Mar-03 19:12
vikramlinux10-Mar-03 19:12 
AnswerRe: Help! How to update the resource in an exe file under Win98? Pin
Baris Kurtlutepe10-Mar-03 21:47
Baris Kurtlutepe10-Mar-03 21:47 
GeneralRe: Help! How to update the resource in an exe file under Win98? Pin
stanley guan11-Mar-03 13:20
stanley guan11-Mar-03 13:20 
GeneralRe: Help! How to update the resource in an exe file under Win98? Pin
stanley guan11-Mar-03 14:11
stanley guan11-Mar-03 14:11 
GeneralParent Child Data Sharing Pin
GWENJi10-Mar-03 16:43
GWENJi10-Mar-03 16:43 

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.