Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. open file dialog

open file dialog

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    i want to implement something like onFileopen() i have a button, which when clicked should help me to browse to get the path of an executable on the system. onFileopen() should work but its ging error saying its a protected member and cannot be accessed please suggest a solution thanks r.k

    C M D 3 Replies Last reply
    0
    • A Anonymous

      i want to implement something like onFileopen() i have a button, which when clicked should help me to browse to get the path of an executable on the system. onFileopen() should work but its ging error saying its a protected member and cannot be accessed please suggest a solution thanks r.k

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The MFC source code is on your hard drive, so you can look at the file dialog code you're wanting to run and use it as a guide to impliment your own code. Just do a search for files containing the method name in the appropriate folder, or if you don't know it, on the base folder of your SDK or VC++ install. Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      • A Anonymous

        i want to implement something like onFileopen() i have a button, which when clicked should help me to browse to get the path of an executable on the system. onFileopen() should work but its ging error saying its a protected member and cannot be accessed please suggest a solution thanks r.k

        M Offline
        M Offline
        MaxVampire82
        wrote on last edited by
        #3

        explicit CFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL, DWORD dwSize = 0 ); You'd better search the MSDN.

        1 Reply Last reply
        0
        • A Anonymous

          i want to implement something like onFileopen() i have a button, which when clicked should help me to browse to get the path of an executable on the system. onFileopen() should work but its ging error saying its a protected member and cannot be accessed please suggest a solution thanks r.k

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Anonymous wrote: onFileopen() should work but its ging error saying its a protected member and cannot be accessed Show us the code snippet that the compiler is complaining about.


          "Ideas are a dime a dozen. People who put them into action are priceless." - Unknown

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups