Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Which is the simplest way to close an application? Pin
alex.barylski19-Nov-03 12:48
alex.barylski19-Nov-03 12:48 
GeneralRe: Which is the simplest way to close an application? Pin
julych19-Nov-03 19:36
julych19-Nov-03 19:36 
GeneralRe: Which is the simplest way to close an application? Pin
alex.barylski19-Nov-03 20:13
alex.barylski19-Nov-03 20:13 
AnswerRe: Which is the simplest way to close an application? Pin
Peak19-Nov-03 19:48
Peak19-Nov-03 19:48 
AnswerRe: Which is the simplest way to close an application? Pin
Shehzad Salim19-Nov-03 22:25
Shehzad Salim19-Nov-03 22:25 
AnswerRe: Which is the simplest way to close an application? Pin
rickfly7020-Nov-03 3:05
rickfly7020-Nov-03 3:05 
QuestionIs it possible to restart my application from within my application? Pin
julych19-Nov-03 11:52
julych19-Nov-03 11:52 
AnswerRe: Is it possible to restart my application from within my application? Pin
Peter Molnar19-Nov-03 12:32
Peter Molnar19-Nov-03 12:32 
If your application lives just in an *.exe there isn't a possibility, but if in a *.dll there is.

You load your own .dll from an *.exe, when the *.dll attaches to the *.exe the reason for call in DllMain is DLL_PROCESS_ATTACH. Depending upon value of dwReason you can start your code.
If your process starts, your *.exe is shown in the task manager (with the *.dll linked to it), and it can be killed from there. In this case your DllMain gets called again with reason DLL_PROCESS_DETACH. From here you have to do a ShellExecute on your *.exe, and your process with the linked *.dll starts again.

Peter Molnar
AnswerRe: Is it possible to restart my application from within my application? Pin
Abin19-Nov-03 13:42
Abin19-Nov-03 13:42 
AnswerRe: Is it possible to restart my application from within my application? Pin
Brian Shifrin19-Nov-03 15:18
Brian Shifrin19-Nov-03 15:18 
Questionceil(), floor(), but no round()? Pin
ns19-Nov-03 10:04
ns19-Nov-03 10:04 
AnswerRe: ceil(), floor(), but no round()? Pin
Terry O'Nolley19-Nov-03 10:06
Terry O'Nolley19-Nov-03 10:06 
AnswerRe: ceil(), floor(), but no round()? Pin
David Crow19-Nov-03 10:13
David Crow19-Nov-03 10:13 
GeneralRe: ceil(), floor(), but no round()? Pin
ns19-Nov-03 10:22
ns19-Nov-03 10:22 
AnswerRe: ceil(), floor(), but no round()? Pin
Orhun Birsoy19-Nov-03 13:51
Orhun Birsoy19-Nov-03 13:51 
Generalreduce memory usage of ctreectrl Pin
namdans19-Nov-03 9:58
namdans19-Nov-03 9:58 
GeneralRe: reduce memory usage of ctreectrl Pin
Larry Antram19-Nov-03 10:59
Larry Antram19-Nov-03 10:59 
GeneralRe: reduce memory usage of ctreectrl Pin
David Crow19-Nov-03 11:09
David Crow19-Nov-03 11:09 
GeneralRe: reduce memory usage of ctreectrl Pin
Tibor Blazko19-Nov-03 19:15
Tibor Blazko19-Nov-03 19:15 
GeneralKeep console from disappearing Pin
orcun colak19-Nov-03 9:53
orcun colak19-Nov-03 9:53 
GeneralRe: Keep console from disappearing Pin
Peak19-Nov-03 10:18
Peak19-Nov-03 10:18 
GeneralRe: Keep console from disappearing Pin
Ivor S. Sargoytchev19-Nov-03 10:20
Ivor S. Sargoytchev19-Nov-03 10:20 
GeneralContext Sensitive Help in Win32. Pin
Mike Doner19-Nov-03 8:46
Mike Doner19-Nov-03 8:46 
GeneralRe: Context Sensitive Help in Win32. Pin
Antti Keskinen19-Nov-03 9:51
Antti Keskinen19-Nov-03 9:51 
GeneralRe: Context Sensitive Help in Win32. Pin
Roger Allen20-Nov-03 6:11
Roger Allen20-Nov-03 6:11 

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.