Introduction - If you have any usage issues, please Google them yourself
VC++ programming to create threads using CEvent class: Statement thread function, which defines global variables m_Sec, the definition of the thread handle, create thread 1 and 2, close the thread handle objects, the program sleep for 10 seconds, output variables, set the event object to signaled state, out of circulation.