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. exec??

exec??

Scheduled Pinned Locked Moved C / C++ / MFC
question
15 Posts 8 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 toxcct

    deprecated...


    TOXCCT >>> GEII power
    [toxcct][VisualCalc]

    H Offline
    H Offline
    Halawlaws
    wrote on last edited by
    #6

    WinExec("C:\\Toxxct\\dolt.exe",SW_ALWAYS); /\|-||\/|/\|)

    T R L 3 Replies Last reply
    0
    • H Halawlaws

      WinExec("C:\\Toxxct\\dolt.exe",SW_ALWAYS); /\|-||\/|/\|)

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

      sorry ?? :mad: what's the matter man ? you feel knowing the point, but you ask at the same time too many low level questions on the forum that i doubt you know what you assert... using WinExec() is deprecated. use ShellExecute() instead! that's all.


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      T 1 Reply Last reply
      0
      • H Halawlaws

        WinExec("C:\\Toxxct\\dolt.exe",SW_ALWAYS); /\|-||\/|/\|)

        R Offline
        R Offline
        Ritu Kwatra
        wrote on last edited by
        #8

        toxctt is right. WinExec is used for compatibility with 16 bit windows so ShellExecute is to be used instead. Ritu Kwatra

        E T 2 Replies Last reply
        0
        • R Ritu Kwatra

          toxctt is right. WinExec is used for compatibility with 16 bit windows so ShellExecute is to be used instead. Ritu Kwatra

          E Offline
          E Offline
          elale
          wrote on last edited by
          #9

          all right, I understand. I tried with WinExec and there was no problem... with ShellExecute im doing something wrong: ShellExecute(0,"open",exefile,params,0,SW_FORCEMINIMIZE); Do i have to put a handle different from NULL? I have no window handle in the function which muss call "ShellExecute". Whats wrong? Thanks, Elale.

          R 1 Reply Last reply
          0
          • T toxcct

            sorry ?? :mad: what's the matter man ? you feel knowing the point, but you ask at the same time too many low level questions on the forum that i doubt you know what you assert... using WinExec() is deprecated. use ShellExecute() instead! that's all.


            TOXCCT >>> GEII power
            [toxcct][VisualCalc]

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

            toxcct wrote: using WinExec() is deprecated Hain Tox, Man don't get angry, may be Deprecated but still you can use it!, Actually it internally make call to ShellExecute!, so it will work fine on all Available Plateform including Window XP

            "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
            • R Ritu Kwatra

              toxctt is right. WinExec is used for compatibility with 16 bit windows so ShellExecute is to be used instead. Ritu Kwatra

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

              Ritu Kwatra wrote: toxctt is right. In Some Way, Read my reply to Tox!

              "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
              • H Halawlaws

                WinExec("C:\\Toxxct\\dolt.exe",SW_ALWAYS); /\|-||\/|/\|)

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

                That is not called for, you should be ashamed after the help others have given you here. Elaine :rose: The tigress is here :-D

                H 1 Reply Last reply
                0
                • E elale

                  Hi, Jungs, I´m trying to execute an exe-file from my own programm. I tried to use th _exec-family functions, but it didn't work. The executable is a console programm, so i need to be able to pass some parameters, too. Thanks. Elale

                  A Offline
                  A Offline
                  anothervip
                  wrote on last edited by
                  #13

                  I find when using WinExec to open an file in a folder whose name is seperated by "space" such as "c:\a b\file", it won't work well. The error message is Can't find c:\a. So use ShellExecute.

                  1 Reply Last reply
                  0
                  • E elale

                    all right, I understand. I tried with WinExec and there was no problem... with ShellExecute im doing something wrong: ShellExecute(0,"open",exefile,params,0,SW_FORCEMINIMIZE); Do i have to put a handle different from NULL? I have no window handle in the function which muss call "ShellExecute". Whats wrong? Thanks, Elale.

                    R Offline
                    R Offline
                    Ritu Kwatra
                    wrote on last edited by
                    #14

                    Hey Elale, What is going wrong ? Try using: ShellExecute(NULL,"open",exefile,params,NULL,SW_HIDE); It is working fine on my PC. Ritu Kwatra

                    1 Reply Last reply
                    0
                    • L Lost User

                      That is not called for, you should be ashamed after the help others have given you here. Elaine :rose: The tigress is here :-D

                      H Offline
                      H Offline
                      Halawlaws
                      wrote on last edited by
                      #15

                      Look Trollslayer, I should clear things once for all eventhough I know that we should not talk about this in here and I hope that this message is read by everyone who replyed to this thread. Some people started to have ideas about my belonging to this site or and I quote "you feel knowing the point, but you ask at the same time too many low level questions on the forum".(i prefer no to quote the whole sentence) I didn't want to reply to this but all I can say is that noone here (or anywhere else) is eligible to classify my question or anyone elses. I know that this reply came after my reply and I quote "WinExec("C:\\Toxxct\\dolt.exe",SW_ALWAYS);" said Halawlaw. The reason I wrote that is to reply to this message. Honestly, this word was insulting. Do you agree that anyone is allowed to give his opinion? All I wanted to do is to be part of this chain and help others as and i quote Trollslayer wrote: you should be ashamed after the help others have given you here and this is what I get. I don't care about my membership period (1 month and 1 day). You don't mesure someone with such irrelevant conclusions. I may be expert in c++ or zero in c++ as far as anyone is concerned. Remember the saying: "There is no dumb question, only dumb answers". This message is not necessarly to make things better between us(= the one who participated in this). Everyone should have his own conclusions and should act accordingly. In fact no matter what I say now, let us say "things will never be the same again". I don't expect that anyway. As a reply to u Trollslayer, yes I had help from many here at the Forum and i never underestimated this. If u go back to mainly all my messages you will find a gratefulness reply to the persons who helped me. In conclusion, I know I will always get the help I need here and I shall help others when I can. I hope there is no hard feeling or heart feeling. ciao /\|-||\/|/\|)

                      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