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. can i use shellexecute() method?

can i use shellexecute() method?

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
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
    baldha rakesh
    wrote on last edited by
    #1

    i have to execute a executable file which is downloaded from a given URL but when use createprocess() method then it execute successfully at 2000 OS but it does't execute on XP OS and now i am using shellexecute() method for executing this file but it executes successfully at both OS and now problem is that this correct way or not and please tell me what is the difference between those functions. Bankey Khandelwal Software Engineer

    T 1 Reply Last reply
    0
    • B baldha rakesh

      i have to execute a executable file which is downloaded from a given URL but when use createprocess() method then it execute successfully at 2000 OS but it does't execute on XP OS and now i am using shellexecute() method for executing this file but it executes successfully at both OS and now problem is that this correct way or not and please tell me what is the difference between those functions. Bankey Khandelwal Software Engineer

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

      i don't know much CreateProcess(), but of course you can use ShellExecute() ! i'd even say it's the easiest way to go to execute a file as if you were double clicking on it in the explorer... show us both lines of code (with createprocess and shellexecute) to see what you were doing wrong...

      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