cjiwank
Messages postés6Date d'inscriptionsamedi 12 mars 2005StatutMembreDernière intervention14 avril 2005
-
16 mars 2005 à 20:36
cjiwank
Messages postés6Date d'inscriptionsamedi 12 mars 2005StatutMembreDernière intervention14 avril 2005
-
17 mars 2005 à 09:19
Quelqu'un peut-il me dire pourquoi je compile ce projet (VC++ 6) j'obtient tjs une erreur " error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)'"
// Chap18bDoc.cpp : implementation of the CChap18bDoc class
//
BEGIN_MESSAGE_MAP(CChap18bDoc, CDocument)
//{{AFX_MSG_MAP(CChap18bDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
ymca2003
Messages postés2070Date d'inscriptionmardi 22 avril 2003StatutMembreDernière intervention 3 juillet 20067 17 mars 2005 à 09:02
ThreadFunc doit être un membre static de la class avec la convention d'appel WINAPI.
Si cette fonction doit faire appel à des membres de la classe, il fuat lui passer un pointeur sur l'objet (this en l'occurence) comme param :