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 a program

running a program

Scheduled Pinned Locked Moved C / C++ / MFC
questionhtml
4 Posts 4 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
    Ali Tavakol
    wrote on last edited by
    #1

    Hello all, how can I run a program? i want to run the Windows's calculator program which i don't know its location. (i only know that it is in program files). also, how can run a non-executable program such as html files (Windows itself to run ie)? a function required.

    A C T 3 Replies Last reply
    0
    • A Ali Tavakol

      Hello all, how can I run a program? i want to run the Windows's calculator program which i don't know its location. (i only know that it is in program files). also, how can run a non-executable program such as html files (Windows itself to run ie)? a function required.

      A Offline
      A Offline
      Abebe
      wrote on last edited by
      #2

      Windows' calculator program location: %SystemRoot%\System32\calc.exe. You can use 'spawn' to start new processes from your own program code. Er zit een korstje op mijn aars.

      1 Reply Last reply
      0
      • A Ali Tavakol

        Hello all, how can I run a program? i want to run the Windows's calculator program which i don't know its location. (i only know that it is in program files). also, how can run a non-executable program such as html files (Windows itself to run ie)? a function required.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        ShellExecute does this for you, the HTML file as well. Christian Graus - Microsoft MVP - C++

        1 Reply Last reply
        0
        • A Ali Tavakol

          Hello all, how can I run a program? i want to run the Windows's calculator program which i don't know its location. (i only know that it is in program files). also, how can run a non-executable program such as html files (Windows itself to run ie)? a function required.

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          Ali Tavakol wrote: how can I run a program? i want to run the Windows's calculator program which i don't know its location. (i only know that it is in program files). This article will Help:- [http://www.codeproject.com/system/newbiespawn.asp](http:// http://www.codeproject.com/system/newbiespawn.asp)[[^](http:// http://www.codeproject.com/system/newbiespawn.asp)]

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

          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