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. Invokin anothr process from my app

Invokin anothr process from my app

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

    Hi, My project uses a telephony hardware which comes with its own initializing software. Each time i run my app, i've to run the said s/w for initializing the h/w. So, i think it'll be better if my app itself runs it on startup. I've lookd up the MSDN and ended up on Createprocess(:confused:). I burnd my head a lot, but its not workin, probably, the parameters i passd r incorrect.. plz help me out. thanks, -- ano -- modified at 0:38 Friday 25th November, 2005

    C S 2 Replies Last reply
    0
    • W whizano

      Hi, My project uses a telephony hardware which comes with its own initializing software. Each time i run my app, i've to run the said s/w for initializing the h/w. So, i think it'll be better if my app itself runs it on startup. I've lookd up the MSDN and ended up on Createprocess(:confused:). I burnd my head a lot, but its not workin, probably, the parameters i passd r incorrect.. plz help me out. thanks, -- ano -- modified at 0:38 Friday 25th November, 2005

      C Offline
      C Offline
      Cool Ju
      wrote on last edited by
      #2

      Hi, Use ShellExecuteEx Bye Cool Ju :cool: Dream Ur Destiny

      1 Reply Last reply
      0
      • W whizano

        Hi, My project uses a telephony hardware which comes with its own initializing software. Each time i run my app, i've to run the said s/w for initializing the h/w. So, i think it'll be better if my app itself runs it on startup. I've lookd up the MSDN and ended up on Createprocess(:confused:). I burnd my head a lot, but its not workin, probably, the parameters i passd r incorrect.. plz help me out. thanks, -- ano -- modified at 0:38 Friday 25th November, 2005

        S Offline
        S Offline
        sanket patel
        wrote on last edited by
        #3

        hi you can use create process as follows. suppose app u want to run is saved on c: and its name is app.exe then u can try this STARTUPINFO si={0}; PROCESS_INFORMATION pi={0}; if(!CreateProcess(NULL,"c:\\app.exe",NULL,NULL,FALSE,CREATE_NEW_CONSOLE,NULL, NULL,&si,&pi)) { printf("\nError in creating the process"); } else printf("\nBe happy"); sanket patel

        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