15,474
社区成员




BOOL CAvi::Play(CHandDoc *pDoc, CString strAviFile)
{
if (m_hThread != NULL)
return FALSE;
if (!OpenFile(strAviFile))
return FALSE;
m_eStatus = Playing;
DWORD dwThreadId = 1001;
m_hThread = CreateThread(NULL, 0, PlayThread, pDoc, 0, &dwThreadId);
if (m_hThread == NULL)
{
DWORD dw = GetLastError();
CString str;
str.Format("%d");
AfxMessageBox("创建线程失败!" + str);
return FALSE;
}
return TRUE;
}
DWORD WINAPI PlayThread(LPVOID lpData)
{
return 0;
}