Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to restart my own application in VC++

Am working on VC++ application.

Figuring out how to restart my own application

Can somebody show some example

like image 852
user1465461 Avatar asked Oct 22 '22 15:10

user1465461


1 Answers

Write a program, which will:

  • Wait for your application to terminate
  • Run it again.

Call this program, then exit your application. This solution is quite widely used.


Another option:

Call your application with specific parameter (eg. /restarted). The new instance should wait for the old one to terminate before performing any tasks. Then shut down the old instance.

like image 133
Spook Avatar answered Oct 27 '22 09:10

Spook