15,471
社区成员
发帖
与我相关
我的任务
分享
hThread = ::CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)ThreadFunc, NULL, 0, &ThreadID);
DWORD Try1Dlg::ThreadFunc(LPVOID lpParam)
{
while (true)
{
string res = player.getServerSoctet().recvSingleOption();
if (MainFunction::startwith(res,"Error")==false)
{
string inviteName = "";
if (res[0] == 'i')
{
::MessageBox(NULL,(LPCTSTR)function.UTF8ToUnicode(res).c_str(), _T("Notice"), MB_OK);
}
break;
}
}
return 0;
}