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. HOWTO: Find the

HOWTO: Find the

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 3 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.
  • J Offline
    J Offline
    Jeremy Davis
    wrote on last edited by
    #1

    Anyone know how I can find what the path name for "My Documents" is? For the windows and windows/system directory I can use GetWindowsdirectory etc, but what about the "My Documents" directory. Thanks for any help at all. Jerry

    S M 2 Replies Last reply
    0
    • J Jeremy Davis

      Anyone know how I can find what the path name for "My Documents" is? For the windows and windows/system directory I can use GetWindowsdirectory etc, but what about the "My Documents" directory. Thanks for any help at all. Jerry

      S Offline
      S Offline
      Stephen Kellett
      wrote on last edited by
      #2

      isn't it along the lines of \profiles\\My Documents ? Stephen

      1 Reply Last reply
      0
      • J Jeremy Davis

        Anyone know how I can find what the path name for "My Documents" is? For the windows and windows/system directory I can use GetWindowsdirectory etc, but what about the "My Documents" directory. Thanks for any help at all. Jerry

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Call SHGetSpecialFolderLocation() and pass it CSIDL_PERSONAL. If you know your target systems will always have the Active Desktop shell, you can use the easier SHGetSpecialFolderPath() API instead.

        J 1 Reply Last reply
        0
        • M Michael Dunn

          Call SHGetSpecialFolderLocation() and pass it CSIDL_PERSONAL. If you know your target systems will always have the Active Desktop shell, you can use the easier SHGetSpecialFolderPath() API instead.

          J Offline
          J Offline
          Jeremy Davis
          wrote on last edited by
          #4

          Great, thanks!

          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