i'm creating a CFileDialog to ask user to select a file
however i want the user to locate a folder only and not just a speicific file.
FILE *filename;
CString cs;
//open file
CFileDialog m_ldFile(TRUE);
if(m_ldFile.DoModal()==IDOK)
cs=m_ldFile.GetFileName();
filename = fopen(cs,"r"
UpdateData(FALSE);
//this retrives the file and puts it in the file pointer
is there a way i can just get the folder name from the selected folder from the user?
however i want the user to locate a folder only and not just a speicific file.
FILE *filename;
CString cs;
//open file
CFileDialog m_ldFile(TRUE);
if(m_ldFile.DoModal()==IDOK)
cs=m_ldFile.GetFileName();
filename = fopen(cs,"r"
UpdateData(FALSE);
//this retrives the file and puts it in the file pointer
is there a way i can just get the folder name from the selected folder from the user?