Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get the path of Acrobat Reader Exe by C++ Pin
Naveen17-Sep-09 0:37
Naveen17-Sep-09 0:37 
AnswerRe: How to get the path of Acrobat Reader Exe by C++ Pin
David Crow17-Sep-09 2:15
David Crow17-Sep-09 2:15 
QuestionHow to widen the drop down portion of combo box. Pin
Alex@9C16-Sep-09 23:15
Alex@9C16-Sep-09 23:15 
AnswerRe: How to widen the drop down portion of combo box. Pin
«_Superman_»16-Sep-09 23:33
professional«_Superman_»16-Sep-09 23:33 
GeneralRe: How to widen the drop down portion of combo box. Pin
Naveen17-Sep-09 0:24
Naveen17-Sep-09 0:24 
GeneralRe: How to widen the drop down portion of combo box. Pin
«_Superman_»17-Sep-09 0:25
professional«_Superman_»17-Sep-09 0:25 
GeneralRe: How to widen the drop down portion of combo box. Pin
Alex@9C17-Sep-09 1:04
Alex@9C17-Sep-09 1:04 
QuestionStopping windows shutdown in C++./MFC? Pin
Kushagra Tiwari16-Sep-09 22:50
Kushagra Tiwari16-Sep-09 22:50 
Hello all
I am making a MFC silent application which will trace if windows is shutting down or not and if it is I will have to stp this shut down and perform some other work and then initiate the shutdown myself.I am overriding method to handle WM_QUERYENDSESSION . the code is some thing like this

BOOL CMyShutDownDlg::OnQueryEndSession()
{

ShellExecuteA(NULL, "open","abc.exe", NULL, NULL, SW_SHOWNORMAL);
::MessageBox(NULL,_T("Test"),_T("I stopped shutdown"),MB_OK);
return FALSE;
}

The thing is that returning false allows window to halt the sutdown but not completely stop it. Also,while trying to file any other exe at this time leads to'windows error' stating that windows cannot execute this as it is about to shutdown. I think as soon as windows recieves WM_QUERYSHUTDOWN it sends all other applications WM_CLOSE which is what I think is stopping my aplication to execute any other application from itself.

Please help me in this .

Regards,
Kushagra


I hate coding but I luv to develop Blush | :O
AnswerRe: Stopping windows shutdown in C++./MFC? Pin
«_Superman_»16-Sep-09 23:06
professional«_Superman_»16-Sep-09 23:06 
GeneralOT Pin
CPallini16-Sep-09 23:35
mveCPallini16-Sep-09 23:35 
GeneralRe: OT Pin
«_Superman_»16-Sep-09 23:37
professional«_Superman_»16-Sep-09 23:37 
GeneralRe: OT Pin
ThatsAlok16-Sep-09 23:48
ThatsAlok16-Sep-09 23:48 
AnswerRe: Stopping windows shutdown in C++./MFC? Pin
Randor 17-Sep-09 0:27
professional Randor 17-Sep-09 0:27 
GeneralRe: Stopping windows shutdown in C++./MFC? Pin
Kushagra Tiwari17-Sep-09 0:43
Kushagra Tiwari17-Sep-09 0:43 
GeneralRe: Stopping windows shutdown in C++./MFC? Pin
David Crow17-Sep-09 2:18
David Crow17-Sep-09 2:18 
GeneralRe: Stopping windows shutdown in C++./MFC? Pin
Kushagra Tiwari17-Sep-09 3:18
Kushagra Tiwari17-Sep-09 3:18 
GeneralRe: Stopping windows shutdown in C++./MFC? Pin
David Crow17-Sep-09 3:27
David Crow17-Sep-09 3:27 
QuestionRe: Stopping windows shutdown in C++./MFC? Pin
Kushagra Tiwari17-Sep-09 20:24
Kushagra Tiwari17-Sep-09 20:24 
QuestionRe: Stopping windows shutdown in C++./MFC? Pin
David Crow18-Sep-09 4:18
David Crow18-Sep-09 4:18 
QuestionHow to load PDF file on any button click in VC++? Pin
deadlyabbas16-Sep-09 22:32
deadlyabbas16-Sep-09 22:32 
AnswerRe: How to load PDF file on any button click in VC++? Pin
Nuri Ismail16-Sep-09 22:46
Nuri Ismail16-Sep-09 22:46 
GeneralRe: How to load PDF file on any button click in VC++? Pin
deadlyabbas16-Sep-09 23:12
deadlyabbas16-Sep-09 23:12 
GeneralRe: How to load PDF file on any button click in VC++? Pin
Nuri Ismail17-Sep-09 0:50
Nuri Ismail17-Sep-09 0:50 
AnswerRe: How to load PDF file on any button click in VC++? Pin
CPallini16-Sep-09 22:51
mveCPallini16-Sep-09 22:51 
GeneralRe: How to load PDF file on any button click in VC++? Pin
deadlyabbas16-Sep-09 23:36
deadlyabbas16-Sep-09 23:36 

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.