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 debug a shortcut to the application

How to debug a shortcut to the application

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

    I have a win32 app that is usually never run directly from the exe but rather we create a shortcut to it (on desktop) and run from there. Reason for doing so is that in the shortcut we can spcify the "Start in" folder (which is different from \debug folder where the exe is placed) and the application uses this working folder to store some data. If we directly run the exe, it will assume the current folder (\debug) to be the working folder, which is not OK for my app. Now the problem is, when I start debugging with F5, it runs the exe form \debug folder. How can I set it to run the desktop shortcut rather than the main exe? I am using VS2005.


    It's better to know some of the questions than all of the answers.
    Pravin.

    T 1 Reply Last reply
    0
    • P PravinSingh

      I have a win32 app that is usually never run directly from the exe but rather we create a shortcut to it (on desktop) and run from there. Reason for doing so is that in the shortcut we can spcify the "Start in" folder (which is different from \debug folder where the exe is placed) and the application uses this working folder to store some data. If we directly run the exe, it will assume the current folder (\debug) to be the working folder, which is not OK for my app. Now the problem is, when I start debugging with F5, it runs the exe form \debug folder. How can I set it to run the desktop shortcut rather than the main exe? I am using VS2005.


      It's better to know some of the questions than all of the answers.
      Pravin.

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      in the debugging settings, you can specify the starting folder...


      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      P 1 Reply Last reply
      0
      • T toxcct

        in the debugging settings, you can specify the starting folder...


        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        P Offline
        P Offline
        PravinSingh
        wrote on last edited by
        #3

        Thanks for the quick help. I got it working :)


        It's better to know some of the questions than all of the answers.
        Pravin.

        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