如何在VC ++中重新启动我自己的应用程序 [英] how to restart my own application in VC++

查看:301
本文介绍了如何在VC ++中重新启动我自己的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正在使用VC ++应用程序.

Am working on VC++ application.

弄清楚如何重新启动自己的应用程序

Figuring out how to restart my own application

有人可以举一些例子吗

推荐答案

编写程序,该程序将:

  • 等待您的应用终止
  • 再次运行.

调用此程序,然后退出您的应用程序.该解决方案被广泛使用.

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

另一个选择:

使用特定参数(例如/重新启动)调用您的应用程序.新实例应等待旧实例终止后再执行任何任务.然后关闭旧实例.

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.

这篇关于如何在VC ++中重新启动我自己的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆