Welcome: Hunan Intelligent Applications Tecgnology CO.,ltd.-HNIAT.com
Language: Chinese ∷  English

Basic knowledge

Process does not exit after MFC shuts down

After packaging the MFC release program, it was found during use that after closing the dialog box, the process still could not be released. Refer to the following method and put it in my oncancle () function.

Recently I was working on an MFC interface. After closing the window, there is still this process in the task manager, indicating that the process is still running. How to close it, just add the following two sentences
HANDLE MyProcess = GetCurrentProcess ();
  TerminateProcess (MyProcess, 0);

ps: //blog.csdn.net/sunshihua12829/article/details/45876237

CONTACT US

Contact: Manager Xu

Phone: 13907330718

Tel: 0731-22222718

Email: hniatcom@163.com

Add: Room 603, 6th Floor, Shifting Room, No. 2, Orbit Zhigu, No. 79 Liancheng Road, Shifeng District, Zhuzhou City, Hunan Province

Scan the qr codeClose
the qr code