?

解决方案 »

  1.   

    while (1) {
        if(::WaitForSingleObject(m_hEvent, 20 ) == WAIT_OBJECT_0)
            break;
        TRACE0("我爱更有意义\n");
    }为什么总是一开始就是有信号状态,
    我必须在开始写上::ResetEvent才可能打出调试信息
      

  2.   

    你的第二个参数的问题
    If TRUE, then you must use the ResetEvent function to manually reset the state to nonsignaled. If FALSE, the system automatically resets the state to nonsignaled after a single waiting thread has been released. 
      

  3.   

    我理解就应该是TRUE吧,我想创建的就是一个手动、初始为无信号的的Event