进程代码:
HANDLE m_hUpdateThread; m_hUpdateThread = (HANDLE)_beginthreadex(NULL, 0, UpdateDataProgressDialog::UpdateDataThread, LPVOID(this), 0, NULL); unsigned int WINAPI UpdateDataProgressDialog::UpdateDataThread(LPVOID lpVoid) { UpdateDataProgressDialog* pDlgUpdate = static_cast<UpdateDataProgressDialog*>(lpVoid); if (pDlgUpdate) { pDlgUpdate->UpdateData(); } return 0; }