Executing, Copying, and other tasks in C++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erhan

    Executing, Copying, and other tasks in C++

    Hello, after a recent move to windows API from terminal I come across
    a small problem. How can I execute a program without using stdlib.h ?
    Before I would use stdlib.h by using a command such as
    system("myprogr am.exe");
    to execute a program. When using windows API the terminal window pops
    up and carries out the command in the terminal. This looks ugly, and I
    am looking for an alternative to executing a program without the use
    of terminal commands.

    Thanks, this will be extremely useful for my transition.
  • White Wolf

    #2
    Re: Executing, Copying, and other tasks in C++

    Erhan wrote:[color=blue]
    > Hello, after a recent move to windows API from terminal I come across[/color]

    Sorry, you need to find a Window programming newsgroup for this. That link
    might help:



    --
    WW aka Attila


    Comment

    • Mike Wahler

      #3
      Re: [OT, link, redirect] Executing, Copying, and other tasks in C++

      "Erhan" <erhan_j@hotmai l.com> wrote in message
      news:9dcabc0a.0 309191232.17094 7dc@posting.goo gle.com...[color=blue]
      > Hello, after a recent move to windows API from terminal I come across
      > a small problem. How can I execute a program without using stdlib.h ?[/color]

      With ISO standard C++ (the only topic here), that's
      the only way.
      [color=blue]
      > Before I would use stdlib.h by using a command such as
      > system("myprogr am.exe");[/color]

      Right.
      [color=blue]
      > to execute a program. When using windows API the terminal window pops
      > up and carries out the command in the terminal. This looks ugly, and I
      > am looking for an alternative to executing a program without the use
      > of terminal commands.[/color]

      The Windows API does offer more flexible, Windows-oriented
      ways of spawning and executing a one program from another,
      but the Windows API (or any other platform-specific feature
      or tool) is not topical here. I think you can find all the
      answers you need at www.msdn.microsoft.com and/or one or more
      of the many Windows-specific newsgroups which are cited there.

      The MDSN site can appear rather formidable to the first time
      visitor, but imo it's worthwhile to persevere until one can
      learn his way around there. There's a *huge* amount of good
      Windows programming info there.


      Good luck!
      -Mike


      Comment

      Working...