1._beginthreadex 宏定义:
typedef unsigned (_stdcall *PTHREAD_START)(void*);
#define chBEGINTHREADEX(psa,chStack,pfnStartAddr,pvParam,fdwCreate,pdwThreadID) \
((HANDLE)_beginthreadex((void*)(psa),(unsigned)/**/(chStack),(PTHREAD_START)(pfnStartAddr), \
(void*)(pvParam),(unsigned)/**/(fdwCreate),(unsigned*)(pdwThreadID)))
2. error C2065: '_beginthreadex' : undeclared identifier
包含头文件process.h
1)#include<process.h>
2)在Project->Settings->C/C++->Code Generation->Use run-time libray->Debug Multithread,或 Multithread,
或 Debug Multithread DLL, 或 Multithread DLL都可以,即Use run-time library需要使用多线程的