macro RUNTIME_CLASS - erreur de compilation
Bonjour,
J'ai un souci, sur mes nouveaux projet avec la macro RUNTIME_CLASS me retourne une erreur lors de la compilation. Mes anciens projets compilent toujours correctement...
Mon code est le suivant :
Code:
1 2 3 4 5 6 7 8
|
// Retrieves a pointer to the main window
CWnd* cWndDialogue = AfxGetMainWnd( );
CMonDlg* pDialogue ;
//Tests this object's relationship to a given class
if (!cWndDialogue->IsKindOf(RUNTIME_CLASS( CMonDlg)))
return; |
Dans le *.h :
Code:
class CMonDlg : public CDialog
L'erreur de compilation étant:
Code:
error C2039: 'classCMonDlg' : is not a member of 'CMonDlg'
J'en perd mon latin ! :arf:
Quelqu'un aurait-il déjà rencontré ce problème ?
Merci...