1、线程是由这个类里面创建的(里面使用公司的标准库的)
bool CMy01_MFCAndFlashDlg::InitDevice()
{
InitPCI8735();
InitZhiWen();
pThread=FastThreadRun(ThreadFunction,this);
return true;
}
2、线程的pThis就是代表这个类,所以直接可以使用这个类的方法
void ThreadFunction(void *pd)
{
CMy01_MFCAndFlashDlg *pThis=(CMy01_MFCAndFlashDlg*)pd;
m_run=true;
while (m_run==true)
{
//播放视频回到待机
if(FastVlcGetState(pVlc)==6)
{
dlg->MoveWindow(Dlg02_xLeft,Dlg02_yTop,Dlg02_xRight,Dlg02_yBottom);
FastVlcPlay(pVlc,0);
pThis->SetTimer(100,0,NULL);
}
}
}