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. system() in MFC

system() in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
7 Posts 6 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.
  • R Offline
    R Offline
    RomTibi
    wrote on last edited by
    #1

    Is there an equivalent of the system() C function in MFC?

    36. When you surround an army, leave an outlet free. ... Do not press a desperate foe too hard. SUN-TZU - Art of War

    G R L 3 Replies Last reply
    0
    • R RomTibi

      Is there an equivalent of the system() C function in MFC?

      36. When you surround an army, leave an outlet free. ... Do not press a desperate foe too hard. SUN-TZU - Art of War

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      system does exist in VS2003+ libraries - I cant remember the details but its http://msdn.microsoft.com/en-us/library/277bwbdz(v=vs.80).aspx[^] try using

      ::system(command);

      that being said, I'd use CreateProcess API instead - it give much more control .. as for the 'MFC' part of your question, MFC is just a higher order level of classes/abstractions anyway

      S 1 Reply Last reply
      0
      • G Garth J Lancaster

        system does exist in VS2003+ libraries - I cant remember the details but its http://msdn.microsoft.com/en-us/library/277bwbdz(v=vs.80).aspx[^] try using

        ::system(command);

        that being said, I'd use CreateProcess API instead - it give much more control .. as for the 'MFC' part of your question, MFC is just a higher order level of classes/abstractions anyway

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        Or perhaps ShellExecute.

        Steve

        G 1 Reply Last reply
        0
        • S Stephen Hewitt

          Or perhaps ShellExecute.

          Steve

          G Offline
          G Offline
          Garth J Lancaster
          wrote on last edited by
          #4

          gawd - getting old (just turned 0x30) - memory slipping, lining up spot on park bench 'forgot that one' :-) ta

          1 Reply Last reply
          0
          • R RomTibi

            Is there an equivalent of the system() C function in MFC?

            36. When you surround an army, leave an outlet free. ... Do not press a desperate foe too hard. SUN-TZU - Art of War

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #5

            As Stephen suggested, you can use ShellExecute: A newbie's elementary guide to spawning processes[^]

            "Real men drive manual transmission" - Rajesh.

            1 Reply Last reply
            0
            • R RomTibi

              Is there an equivalent of the system() C function in MFC?

              36. When you surround an army, leave an outlet free. ... Do not press a desperate foe too hard. SUN-TZU - Art of War

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Well there is this[^], but it has nothing to do with MFC.

              A 1 Reply Last reply
              0
              • L Lost User

                Well there is this[^], but it has nothing to do with MFC.

                A Offline
                A Offline
                Albert Holguin
                wrote on last edited by
                #7

                Yep, Richard is completely correct, the system call has nothing to do with MFC. +5

                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