CEvent threadStart;
UINT ThreadFunction(LPVOID pParam)
{
::WaitForSingleObject(threadStart.m_hObject,INFINITE);
    AfxMessageBox("线程因为信号的产生,所以结束了等待");
}
这是我在程序中定义的一个全局的变量,和函数,
F:\vc代码的实现\event\eventDlg.cpp(16) : error C2146: syntax error : missing ';' before identifier 'threadStart'
F:\vc代码的实现\event\eventDlg.cpp(16) : error C2501: 'CEvent' : missing storage-class or type specifiers
F:\vc代码的实现\event\eventDlg.cpp(16) : fatal error C1004: unexpected end of file found
就给出了,这些错误,请大家帮忙看看,小弟经验浅谢谢。。