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);