J'ai une classe A qui possède les deux méthodes suivantes comme suit
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
 
void A::commencer()
{
int n=20;
_beginthreadex(NULL,0,ThreadFunc,&n,0,NULL);
}
 
 
unsigned int __stdcall A::ThreadFunc(void* pParam)
{
	LPCSTR n = (LPCSTR) pParam ;
	Sleep(2000);
	MessageBox(n);
	_endthreadex(0);
return 0;
}
Mais en compilant,j'ai l'erreur suivante
'_beginthreadex' : cannot convert parameter 3 from 'unsigned int (void *)' to 'unsigned int (__stdcall *)(void *)'

Merci pour votre aide