Click here to Skip to main content
15,894,955 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need suggestion for thread test Pin
CPallini23-May-11 8:06
mveCPallini23-May-11 8:06 
GeneralRe: Need suggestion for thread test Pin
Maximilien24-May-11 4:15
Maximilien24-May-11 4:15 
AnswerRe: Need suggestion for thread test Pin
Stefan_Lang24-May-11 0:06
Stefan_Lang24-May-11 0:06 
QuestionCFileDialog Pin
sarfaraznawaz23-May-11 3:19
sarfaraznawaz23-May-11 3:19 
QuestionRe: CFileDialog Pin
David Crow23-May-11 3:50
David Crow23-May-11 3:50 
AnswerRe: CFileDialog Pin
Richard MacCutchan23-May-11 4:57
mveRichard MacCutchan23-May-11 4:57 
GeneralRe: CFileDialog Pin
sarfaraznawaz23-May-11 19:16
sarfaraznawaz23-May-11 19:16 
GeneralRe: CFileDialog Pin
Chandrasekharan P23-May-11 19:29
Chandrasekharan P23-May-11 19:29 
Do you want to select the folder or the the file inside the folder? if its the folder then you can use the function that was mentioned by David
here is an example for that

BROWSEINFO   bi; 
    ZeroMemory(&bi,   sizeof(bi)); 
    TCHAR   szDisplayName[MAX_PATH]; 
    szDisplayName[0]    =   '';  

    bi.hwndOwner        =   NULL; 
    bi.pidlRoot         =   NULL; 
    bi.pszDisplayName   =   szDisplayName; 
    bi.lpszTitle        =   _T("Please select a folder for storing received files :"); 
    bi.ulFlags          =   BIF_RETURNONLYFSDIRS;
    bi.lParam           =   NULL; 
    bi.iImage           =   0;  

    LPITEMIDLIST   pidl   =   SHBrowseForFolder(&bi);
    TCHAR   szPathName[MAX_PATH]; 
    if   (NULL   !=   pidl)
    {
         BOOL bRet = SHGetPathFromIDList(pidl,szPathName);
         if(FALSE == bRet)
              return;
         AfxMessageBox(szPathName);
    }


and if you are selecting a file then you can see this example

SelectDialog - A Multiple File and Folder Select Dialog[^]
GeneralRe: CFileDialog Pin
sarfaraznawaz25-May-11 19:33
sarfaraznawaz25-May-11 19:33 
AnswerRe: CFileDialog Pin
abhishek.biradar23-May-11 19:42
abhishek.biradar23-May-11 19:42 
QuestionRunning a c++ program Pin
tasumisra23-May-11 1:22
tasumisra23-May-11 1:22 
AnswerRe: Running a c++ program Pin
Richard MacCutchan23-May-11 1:30
mveRichard MacCutchan23-May-11 1:30 
GeneralRe: Running a c++ program Pin
tasumisra23-May-11 1:33
tasumisra23-May-11 1:33 
GeneralRe: Running a c++ program [modified] Pin
Legor23-May-11 1:45
Legor23-May-11 1:45 
GeneralRe: Running a c++ program Pin
tasumisra23-May-11 1:52
tasumisra23-May-11 1:52 
GeneralRe: Running a c++ program Pin
Legor23-May-11 2:40
Legor23-May-11 2:40 
GeneralRe: Running a c++ program Pin
Richard MacCutchan23-May-11 2:40
mveRichard MacCutchan23-May-11 2:40 
AnswerRe: Running a c++ program Pin
David Crow24-May-11 6:43
David Crow24-May-11 6:43 
Question64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen22-May-11 20:01
Maxwell Chen22-May-11 20:01 
QuestionRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
CPallini23-May-11 0:42
mveCPallini23-May-11 0:42 
AnswerRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen23-May-11 0:45
Maxwell Chen23-May-11 0:45 
GeneralRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
CPallini23-May-11 1:00
mveCPallini23-May-11 1:00 
GeneralRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen23-May-11 1:01
Maxwell Chen23-May-11 1:01 
QuestionRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
CPallini23-May-11 1:28
mveCPallini23-May-11 1:28 
AnswerRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen23-May-11 4:08
Maxwell Chen23-May-11 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.