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. Running exe problem

Running exe problem

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
4 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.
  • A Offline
    A Offline
    aaaan
    wrote on last edited by
    #1

    Hi I want to write a application(MFC), which can be run in two way 1. Auto run at start up. 2. Manually run by user. I want to know that, is there any way to identify whether it is manually running or autorun.I want to impliment some functionality according that in the exe. Acually i want to impliment this in the InitInstance(); nkb

    P 1 Reply Last reply
    0
    • A aaaan

      Hi I want to write a application(MFC), which can be run in two way 1. Auto run at start up. 2. Manually run by user. I want to know that, is there any way to identify whether it is manually running or autorun.I want to impliment some functionality according that in the exe. Acually i want to impliment this in the InitInstance(); nkb

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      aaaan wrote:

      1. Auto run at start up.

      I'm not sure how it works. But, can you use command line to identify.

      Prasad Notifier using ATL | Operator new[],delete[][^]

      A 1 Reply Last reply
      0
      • P prasad_som

        aaaan wrote:

        1. Auto run at start up.

        I'm not sure how it works. But, can you use command line to identify.

        Prasad Notifier using ATL | Operator new[],delete[][^]

        A Offline
        A Offline
        aaaan
        wrote on last edited by
        #3

        Hi Prasad thanks for your replay. But i donnot know how to use comandline Can you tell me a little briefly. Thanks nkb

        P 1 Reply Last reply
        0
        • A aaaan

          Hi Prasad thanks for your replay. But i donnot know how to use comandline Can you tell me a little briefly. Thanks nkb

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          aaaan wrote:

          But i donnot know how to use comandline

          Use GetCommandLine , for getting commnad line parameters. When running and exe, they are eimmediately followed by exe name. We can use while running an exe.

          c:\\MyExe.exe "prasad"

          In example above "prasad" will be passed as parameter to exe. Which can be obtained using GetcommandLine from application. See description of GetcommandLine for better understanding.

          Prasad Notifier using ATL | Operator new[],delete[][^]

          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