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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to Create Common File Dialog in ATL COM Component

How to Create Common File Dialog in ATL COM Component

Scheduled Pinned Locked Moved C / C++ / MFC
2 Posts 2 Posters 0 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.
  • T Offline
    T Offline
    Tony Li
    wrote on last edited by
    #1

    I want to create a Common File Dialog, like the one in MFC, in my ATL COM component. I turned off "MFC Support" option to minimize the COM component size. Is there any dialog class, like CFileDialog, in ATL to do that? Or is there any easy way to do that other than create my own file dialog? Thanks, Tony

    E 1 Reply Last reply
    0
    • T Tony Li

      I want to create a Common File Dialog, like the one in MFC, in my ATL COM component. I turned off "MFC Support" option to minimize the COM component size. Is there any dialog class, like CFileDialog, in ATL to do that? Or is there any easy way to do that other than create my own file dialog? Thanks, Tony

      E Offline
      E Offline
      Erik
      wrote on last edited by
      #2

      You can use "GetOpenFileName"/"GetSaveFileName", They are Win32API methods that can be used to open/save a file respectively. If you are just browsing for a folder, you can use "SHBrowseForFolder" API method. Hope it helps,

      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