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. Launching Paint from different OS

Launching Paint from different OS

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorialworkspace
25 Posts 10 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.
  • T TheDelChop

    Guys, I am writing a program that permits the user to launch paint from within my application if he/she chooses. Since my program must support a wide range of Windows OSs, I am faced with the dilemma that paint is located in different folders in different OSs. My question is, can I use the environment variable %SystemRoot% when specifying the location to launch? For example: C:\\%SystemRoot%\\System32\\mspaint.exe If this isn't the way to do it, any suggestions of a good way to do this?

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

    as David said, i doubt very strongly that mspaint.exe is not in the system path... so just launch mspaint as you launch notepad, and you'll be gone


    [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

    1 Reply Last reply
    0
    • T TheDelChop

      Guys, I am writing a program that permits the user to launch paint from within my application if he/she chooses. Since my program must support a wide range of Windows OSs, I am faced with the dilemma that paint is located in different folders in different OSs. My question is, can I use the environment variable %SystemRoot% when specifying the location to launch? For example: C:\\%SystemRoot%\\System32\\mspaint.exe If this isn't the way to do it, any suggestions of a good way to do this?

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #4

      [Message Deleted]

      T C 2 Replies Last reply
      0
      • J Jonathan Darka

        [Message Deleted]

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

        yokel ;P


        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        J R 2 Replies Last reply
        0
        • T toxcct

          yokel ;P


          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

          J Offline
          J Offline
          Jonathan Darka
          wrote on last edited by
          #6

          Just noticed, well, after being told anyway. Bows head in shame.


          Jonathan Wilkes Darka[Xanya.net]

          1 Reply Last reply
          0
          • J Jonathan Darka

            [Message Deleted]

            C Offline
            C Offline
            Cedric Moonen
            wrote on last edited by
            #7

            Err, I think you skipped the word Windows in the post. Read what you quoted once again ;)


            Cédric Moonen Software developer
            Charting control [v1.2]

            J 1 Reply Last reply
            0
            • C Cedric Moonen

              Err, I think you skipped the word Windows in the post. Read what you quoted once again ;)


              Cédric Moonen Software developer
              Charting control [v1.2]

              J Offline
              J Offline
              Jonathan Darka
              wrote on last edited by
              #8

              erm.... Deleted my message due to extreme stupidity and eagerness to answer... well that's my excuse anyway. :-)


              Jonathan Wilkes Darka[Xanya.net]

              T 1 Reply Last reply
              0
              • T toxcct

                yokel ;P


                [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                R Offline
                R Offline
                Rage
                wrote on last edited by
                #9

                Toi qui connais bien les STL, une idée concernant cela : http://www.codeproject.com/script/comments/forums.asp?msg=2162202&forumid=1647&mode=all&userid=29249#xx2162202xx On ne peut pas stocker de fstream dans un vector ?

                Don't follow any man spiritually, don't do anything that will get you in sh*t if god is real - Bradml[^]

                E 1 Reply Last reply
                0
                • R Rage

                  Toi qui connais bien les STL, une idée concernant cela : http://www.codeproject.com/script/comments/forums.asp?msg=2162202&forumid=1647&mode=all&userid=29249#xx2162202xx On ne peut pas stocker de fstream dans un vector ?

                  Don't follow any man spiritually, don't do anything that will get you in sh*t if god is real - Bradml[^]

                  E Offline
                  E Offline
                  Eytukan
                  wrote on last edited by
                  #10

                  Rage wrote:

                  On ne peut pas stocker de fstream dans un vector ?

                  Je pense que , on ne peux pas ! :rolleyes:, tu peux montrer les codes que tu utilise a stoker de fstream dans un vector ?


                  He's become a household word in the Lounge. A whole new phraseology has evolved. Post a link or reply with a smiley and rose, and you've made a "Satipsism". So what? It's an interesting thing about the Internet, the evolution (as in change, not progress) of tone, quality, terminology, etc. -Marc Clifton. Best wishes to Rexx[^

                  C R 2 Replies Last reply
                  0
                  • E Eytukan

                    Rage wrote:

                    On ne peut pas stocker de fstream dans un vector ?

                    Je pense que , on ne peux pas ! :rolleyes:, tu peux montrer les codes que tu utilise a stoker de fstream dans un vector ?


                    He's become a household word in the Lounge. A whole new phraseology has evolved. Post a link or reply with a smiley and rose, and you've made a "Satipsism". So what? It's an interesting thing about the Internet, the evolution (as in change, not progress) of tone, quality, terminology, etc. -Marc Clifton. Best wishes to Rexx[^

                    C Offline
                    C Offline
                    Cedric Moonen
                    wrote on last edited by
                    #11

                    :laugh: Learning French ? I didn't know that you could speak...


                    Cédric Moonen Software developer
                    Charting control [v1.2]

                    E M 2 Replies Last reply
                    0
                    • C Cedric Moonen

                      :laugh: Learning French ? I didn't know that you could speak...


                      Cédric Moonen Software developer
                      Charting control [v1.2]

                      E Offline
                      E Offline
                      Eytukan
                      wrote on last edited by
                      #12

                      oui bro je la parle tres bien :->;)


                      He's become a household word in the Lounge. A whole new phraseology has evolved. Post a link or reply with a smiley and rose, and you've made a "Satipsism". So what? It's an interesting thing about the Internet, the evolution (as in change, not progress) of tone, quality, terminology, etc. -Marc Clifton. Best wishes to Rexx[^

                      T 1 Reply Last reply
                      0
                      • E Eytukan

                        oui bro je la parle tres bien :->;)


                        He's become a household word in the Lounge. A whole new phraseology has evolved. Post a link or reply with a smiley and rose, and you've made a "Satipsism". So what? It's an interesting thing about the Internet, the evolution (as in change, not progress) of tone, quality, terminology, etc. -Marc Clifton. Best wishes to Rexx[^

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

                        hum, sauf que des fstream dans un vector, c'est possible ! pourquoi ce ne le serait pas d'ailleurs ?! ;P


                        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                        E J 2 Replies Last reply
                        0
                        • T toxcct

                          hum, sauf que des fstream dans un vector, c'est possible ! pourquoi ce ne le serait pas d'ailleurs ?! ;P


                          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                          E Offline
                          E Offline
                          Eytukan
                          wrote on last edited by
                          #14

                          toxcct wrote:

                          c'est possible !

                          faux! possible suelment pour les pointers a la fstream. ;P


                          He's become a household word in the Lounge. A whole new phraseology has evolved. Post a link or reply with a smiley and rose, and you've made a "Satipsism". So what? It's an interesting thing about the Internet, the evolution (as in change, not progress) of tone, quality, terminology, etc. -Marc Clifton. Best wishes to Rexx[^

                          T 1 Reply Last reply
                          0
                          • T toxcct

                            hum, sauf que des fstream dans un vector, c'est possible ! pourquoi ce ne le serait pas d'ailleurs ?! ;P


                            [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                            J Offline
                            J Offline
                            James R Twine
                            wrote on last edited by
                            #15

                            (Note: the above is not blank, I am signing using French signs. Does not translate well to a forum, I guess...)    Peace!

                            -=- James
                            Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                            Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                            See DeleteFXPFiles

                            E 1 Reply Last reply
                            0
                            • E Eytukan

                              toxcct wrote:

                              c'est possible !

                              faux! possible suelment pour les pointers a la fstream. ;P


                              He's become a household word in the Lounge. A whole new phraseology has evolved. Post a link or reply with a smiley and rose, and you've made a "Satipsism". So what? It's an interesting thing about the Internet, the evolution (as in change, not progress) of tone, quality, terminology, etc. -Marc Clifton. Best wishes to Rexx[^

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

                              prove it !


                              [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                              E 1 Reply Last reply
                              0
                              • J James R Twine

                                (Note: the above is not blank, I am signing using French signs. Does not translate well to a forum, I guess...)    Peace!

                                -=- James
                                Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                                Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                                See DeleteFXPFiles

                                E Offline
                                E Offline
                                Eytukan
                                wrote on last edited by
                                #17

                                James R. Twine wrote:

                                (Note: the above is not blank, I am signing using French signs. Does not translate well to a forum, I guess...)

                                French please. I dont understand english.:rolleyes:


                                He's become a household word in the Lounge. A whole new phraseology has evolved. Post a link or reply with a smiley and rose, and you've made a "Satipsism". So what? It's an interesting thing about the Internet, the evolution (as in change, not progress) of tone, quality, terminology, etc. -Marc Clifton. Best wishes to Rexx[^

                                T 1 Reply Last reply
                                0
                                • T toxcct

                                  prove it !


                                  [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                                  E Offline
                                  E Offline
                                  Eytukan
                                  wrote on last edited by
                                  #18

                                  Proof[^]:rolleyes:


                                  He's become a household word in the Lounge. A whole new phraseology has evolved. Post a link or reply with a smiley and rose, and you've made a "Satipsism". So what? It's an interesting thing about the Internet, the evolution (as in change, not progress) of tone, quality, terminology, etc. -Marc Clifton. Best wishes to Rexx[^

                                  1 Reply Last reply
                                  0
                                  • C Cedric Moonen

                                    :laugh: Learning French ? I didn't know that you could speak...


                                    Cédric Moonen Software developer
                                    Charting control [v1.2]

                                    M Offline
                                    M Offline
                                    Michael Dunn
                                    wrote on last edited by
                                    #19

                                    Fetchez la vache!

                                    --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Hungarian notation FTW

                                    C 1 Reply Last reply
                                    0
                                    • M Michael Dunn

                                      Fetchez la vache!

                                      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Hungarian notation FTW

                                      C Offline
                                      C Offline
                                      Cedric Moonen
                                      wrote on last edited by
                                      #20

                                      Fetchez ? What's that Michael ? :-D Never heard of this word before (and French is my mother tongue :)). Is it a brutal translation from the english word 'fetch' ?


                                      Cédric Moonen Software developer
                                      Charting control [v1.2]

                                      M 1 Reply Last reply
                                      0
                                      • C Cedric Moonen

                                        Fetchez ? What's that Michael ? :-D Never heard of this word before (and French is my mother tongue :)). Is it a brutal translation from the english word 'fetch' ?


                                        Cédric Moonen Software developer
                                        Charting control [v1.2]

                                        M Offline
                                        M Offline
                                        Michael Dunn
                                        wrote on last edited by
                                        #21

                                        hee :) It's from Monty Python and the Holy Grail. When the knights are trying to storm the French castle, one of the guys gives the order "fetchez la vache!", and then a cow comes flying over the castle wall at the knights.

                                        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Hungarian notation FTW

                                        1 Reply Last reply
                                        0
                                        • E Eytukan

                                          Rage wrote:

                                          On ne peut pas stocker de fstream dans un vector ?

                                          Je pense que , on ne peux pas ! :rolleyes:, tu peux montrer les codes que tu utilise a stoker de fstream dans un vector ?


                                          He's become a household word in the Lounge. A whole new phraseology has evolved. Post a link or reply with a smiley and rose, and you've made a "Satipsism". So what? It's an interesting thing about the Internet, the evolution (as in change, not progress) of tone, quality, terminology, etc. -Marc Clifton. Best wishes to Rexx[^

                                          R Offline
                                          R Offline
                                          Rage
                                          wrote on last edited by
                                          #22

                                          Thanks VuNic ! Cool pour le francais ! So I simply used std::vector <fstream> vStreams. and a loop with vStreams.push_back(fstream()); to initialize all of them.

                                          Don't follow any man spiritually, don't do anything that will get you in sh*t if god is real - Bradml[^]

                                          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