Red de conocimiento informático - Problemas con los teléfonos móviles - Cómo implementar un bucle en vc 6.0: finalizar el bucle cuando se presiona cualquier tecla del teclado

Cómo implementar un bucle en vc 6.0: finalizar el bucle cuando se presiona cualquier tecla del teclado

hgt;

DWORD WINAPI GetChar(LPVOID lpParameter); //datos del hilo

char c=-1;

int main()

{

HANDLE hThread1;

//Crear hilo

hThread1=CreateThread(NULL, 0, GetChar, NULL, 0, NULL);

while(1)

{

coutlt;lt; "1";

if(cgt; 0) romper;

}

}

DWORD WINAPI GetChar(LPVOID lpParameter)

{

mientras (1)

c=getch();

}