MessageBox(NULL, L"Can't connect on Server", L"Error", MB_SYSTEMMODAL); First, I’ll say that I brought MessageBox to a separate thread (so as not to wait for the user’s response), but the fact is that I need to make sure that after the process is closed
ExitProcess(0); MessageBox remained open (because it indicates the notification to the user)
Please do not offer
- suspend the main thread (because I use a DLL, not the main program)
- Running a completely different program (I use a DLL instead of writing a program)
I use IDE Visual Studio 15 with the v140 toolkit.