CWinThread *thread = AfxBeginThread(DownloadAsync, this, THREAD_PRIORITY_NORMAL, 0, NULL);
//可在线程内部直接调用此函数退出当前线程
AfxEndThread(resultCode);
//等待线程执行结束
WaitForSingleObject(downloadVersionThread, 100);
//Download为static方法
HANDLE handle= CreateThread(NULL,
0, (LPTHREAD_START_ROUTINE)Download,
(LPVOID)this,
//(VOID*)this,
0, NULL);