I need to get Folder path but getFolderPath() gives error..Can anybody help me to know WHY??
Code:
CFileDialog dlg(TRUE,NULL,NULL,OFN_EXPLORER|OFN_OVERWRITEPROMPT,"JPEG Files (*.*)|*.*||");
INT_PTR ptr = dlg.DoModal();
if(ptr==IDOK)
{
UpdateData();
CString str = dlg.GetFolderPath();
m_path1.Format("%s",str);
UpdateData(FALSE);
}

