#include <stdio.h>
#include
#include
#include
#include
class a
{
public:
static UINT WINAPI aaa(void *arg);
};
UINT WINAPI a::aaa(void *arg)
{
printf("[%s:%d]\n", __FILE__, __LINE__);
return 0;
}
int main()
{
HANDLE hThread;
hThread = (HANDLE)_beginthreadex(NULL, 0, a::aaa, NULL, 0, NULL);
WaitForSingleObject(hThread, 100);
return 0;
}
댓글 없음:
댓글 쓰기