I am trying to create a thread using the winapi's CreateThread() function, but it doesnt work. No errors at all
void Inc::init() {
DWORD id;
HANDLE hnd = CreateThread(NULL,0,asd,this,0,&id);
}
DWORD Inc::asd(LPVOID lparam) {
Inc* g = (Inc*)lparam;
printf("asd");
}
asd() doesn't get executed at all
Aucun commentaire:
Enregistrer un commentaire