Bonsoir.
J'ai un problème dans mon appli. J'ai récupéré un bout de code sur CodeProject, mais l'un des static_cast me crée une erreur:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
void CPrinterSelectView::OnInitialUpdate()
{
...
	// setup the list of printers
	m_PrinterList.ResetContent() ;
	CWinApp	*pApp = AfxGetApp() ;
	//CFBHorariesApp *pOurApp = static_cast<CFBHorariesApp*>(pApp) ;
	CFBHorariesApp *pOurApp =static_cast<CMonLogicielApp*>(pApp) ;
...
}
et je ne comprends pas pourquoi. Si quelqu'un peut m'éclairer... merci