CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    2

    Open File Dialog

    Is there a way to display a standard MFC style Open File Dialog, and have it return the filename that the user selected (into a char array), but not open the file?

    Thanks,
    -phil



  2. #2
    Join Date
    May 1999
    Posts
    26

    Re: Open File Dialog

    CFileDialog dlgFileOpen(TRUE);
    CString strFile("");
    if (dlgFileOpen.DoModal() == IDOK)
    strFile = dlgFileOpen.GetPathName();

    HTH
    Santhosh



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured