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. Getting the installation directory in WinXP

Getting the installation directory in WinXP

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiohelptutorialquestion
3 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.
  • P Offline
    P Offline
    Parthiban
    wrote on last edited by
    #1

    Hi there, I having the problem in GetCurrentDirectory function. When i am from VC++ IDE, the GetCurrentDirectory (GCD) function returns the exact path. But i running after the installing the my application, the GCD function does n't return the path. for eq, if installed in "D:\program files\MyApp\App", it is giving the path as "D:\Documents and Settings\username". how to i get it? Parthiban

    N 1 Reply Last reply
    0
    • P Parthiban

      Hi there, I having the problem in GetCurrentDirectory function. When i am from VC++ IDE, the GetCurrentDirectory (GCD) function returns the exact path. But i running after the installing the my application, the GCD function does n't return the path. for eq, if installed in "D:\program files\MyApp\App", it is giving the path as "D:\Documents and Settings\username". how to i get it? Parthiban

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      use GetModuleFileName() nave

      N 1 Reply Last reply
      0
      • N Naveen

        use GetModuleFileName() nave

        N Offline
        N Offline
        Nishad S
        wrote on last edited by
        #3

        If u are doing like this, u have to get the path from GetModuleFileName and set working folder in program. Is it better to specify the working folder in the link (windows shortcut) itself? - NS -

        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