Bonjour,

J'ai les erreurs de compil:
D:\FolderDlg_Proj\dialog.cpp(105) : error C2065: 'ULONG_PTR' : undeclared identifier
D:\FolderDlg_Proj\dialog.cpp(105) : error C2146: syntax error : missing ';' before identifier 'ulStyle'
D:\FolderDlg_Proj\dialog.cpp(105) : error C2065: 'ulStyle' : undeclared identifier
D:\FolderDlg_Proj\dialog.cpp(105) : error C2039: 'GetClassLongPtr' : is not a member of '`global namespace''
D:\FolderDlg_Proj\dialog.cpp(105) : error C2065: 'GetClassLongPtr' : undeclared identifier
D:\FolderDlg_Proj\dialog.cpp(107) : error C2039: 'SetClassLongPtr' : is not a member of '`global namespace''
D:\FolderDlg_Proj\dialog.cpp(107) : error C2065: 'SetClassLongPtr' : undeclared identifier


J'ai cherché sur le forum mais aucune similarité à mon cas, les 2 que j'ai trouvé sont à propos de GDI+

Voici le code en question:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
BOOL CDemoDlg::OnInitDialog( VOID )
{
	CDialog::OnInitDialog();
 
	// Shadow for XP
 
	ULONG_PTR ulStyle = ::GetClassLongPtr( GetSafeHwnd(), GCL_STYLE );
	if( !( ulStyle & CS_DROPSHADOW ) )
		::SetClassLongPtr( GetSafeHwnd(), GCL_STYLE, CS_DROPSHADOW );
J'ai le Platform SDK February 2003 sur mon PC!!!