AfxBeginThread(threadProc,AfxGetMainWnd()->GetsafeHwnd());