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. Very simple problem: Regarding EXE folder

Very simple problem: Regarding EXE folder

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
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.
  • B Offline
    B Offline
    BlrBoy
    wrote on last edited by
    #1

    Hello All How to know the Path where the Application EXE is present in run time? If multiple copies of the EXE is present in diff directories I have to do some process depeneding on from where it is getting executed. I tried to search in CWinApp but i could get only the Application Name (m_pszAppName). how to find the whole path of EXE file? Thanks for your time Ravi

    D 1 Reply Last reply
    0
    • B BlrBoy

      Hello All How to know the Path where the Application EXE is present in run time? If multiple copies of the EXE is present in diff directories I have to do some process depeneding on from where it is getting executed. I tried to search in CWinApp but i could get only the Application Name (m_pszAppName). how to find the whole path of EXE file? Thanks for your time Ravi

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

      sravishankar wrote:

      How to know the Path where the Application EXE is present in run time?

      Use GetModuleFileName(NULL, ...).


      "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

      "There is no death, only a change of worlds." - Native American Proverb

      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