>>33
hTh[i] = CreateThread(NULL,0,Testthread,(LPVOID)i,0,&tid[i]);

int num = (int)lpx;