Home > Software engineering > MFC through AFXbeginthread () function of the new worker threads can use a timer?
MFC through AFXbeginthread () function of the new worker threads can use a timer?
Time:11-12
I built a dialog project, and then in the program through AFXbeginthread () function is opened a new worker thread, the thread function used in the timer complains, don't know what the reason, search on the Internet said worker thread no news mechanism, is in the worker thread cannot use timer, you can use the words and how to use, hope to have and give some hints,
CodePudding user response:
In the timer AFXbeginthread () KillTimer ensure the timer again AFXbeginthread (once)