采用ui线程创建界面 窗口 OWindowCamera::OWindowCamera(void)
{
// m_pcwtThread = AfxBeginThread(RUNTIME_CLASS(OCameraThread), THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED);
// if(m_pcwtThread != NULL)
// {
//
// m_pcwtThread->m_bAutoDelete = FALSE;
// m_pcwtThread->ResumeThread();
// }
m_pcwtThread = new OCameraThread();
//m_pcwtThread = AfxBeginThread(RUNTIME_CLASS(OCameraThread), THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED);
if(m_pcwtThread != NULL)
{
m_pcwtThread->CreateThread(CREATE_SUSPENDED);
m_pcwtThread->m_bAutoDelete = FALSE;
m_pcwtThread->ResumeThread();
}
vWait();
}
评论