Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
VC++ アプリケーションに取り組んでいます。
自分のアプリケーションを再起動する方法を理解する
誰かがいくつかの例を示すことができますか
次のようなプログラムを作成します。
このプログラムを呼び出して、アプリケーションを終了します。このソリューションは非常に広く使用されています。
別のオプション:
特定のパラメーター (例: /restarted) を使用してアプリケーションを呼び出します。新しいインスタンスは、タスクを実行する前に、古いインスタンスが終了するまで待機する必要があります。次に、古いインスタンスをシャットダウンします。