#include
#include
int i=0;
DWORD WINAPI ThFunc(void*)
{
printf("thread entered\n");
Sleep(1000);
printf("thread exited %d\n",++i);
return 0;
}
void main()
{
printf("hello?\n");
HANDLE th1=CreateThread(0,0,ThFunc,0,0,0);
Sleep(1000);
return;
}
может я чего-то в этой жизни не понимаю
(
Read more... )