报什么错,贴你错误的代码,typedef struct tagID{ int id1, int id2 }IDS;IDS ids;ids.id1=1;ids.id2=2;HANDLE hThread = (HANDLE)_beginthreadex(....., &proc, &ids, ...);::WaitForSingleObject(hThread, INFINIT);