|
You need to execute a process message - you need to add a line in the while loop - telling the program to process all new input, so that it won't hang.
I have no idea how to do it in C++, in Delphi I would add: Application.Processmessages; -- I googled it and maybe you should try to add the following in the while loop: Application->ProcessMessages();
|