: error C2065: 'CFolderDialog' : undeclared identifier

Asked By Trivan Nguyen
09-Feb-10 03:21 PM
Earn up to 0 extra points for answering this tough question.
Hi There,
  I need some helps. I try to compile with my little code as following but I get "error C2065: 'CFolderDialog' : undeclared identifier"
thanks

void

 

MyDlg::OnButtonBrowse()

 

{

 

//Folders Browser

 

CString m_strFolderPath = _T( "d:\\Windows" );

 

CFolderDialog dlg( _T( "*.."" ), m_strFolderPath,

this );

 

 

if( dlg.DoModal() == IDOK )

 

{

m_strFolderPath = dlg.GetFolderPath();

 

}

 

}

  re: : error C2065: 'CFolderDialog' : undeclared identifier

Santhosh N replied to Trivan Nguyen
10-Feb-10 12:23 AM
It could be bacause of any new line char in any parameters of the parameter or also it could be because of undeclared variables and functions or methods..
check here for more info on this
http://cboard.cprogramming.com/cplusplus-programming/12620-error-c2065-undeclared-identifier.html

and check this if this is valid in your scenario where in which you are trying to compile a Microsoft eMbedded Visual C++ 3.0 or eMbedded Visual C++ 4.0 application
 http://support.microsoft.com/kb/892073
Create New Account