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. how open Internet explore in vc++

how open Internet explore in vc++

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

    I am using this code WinExec("C:\Program Files\Internet Explorer\IEXPLORE.EXE",SW_SHOW); but its not work properly

    Regard's Kaushik

    T N D P 4 Replies Last reply
    0
    • Y Y_Kaushik

      I am using this code WinExec("C:\Program Files\Internet Explorer\IEXPLORE.EXE",SW_SHOW); but its not work properly

      Regard's Kaushik

      T Offline
      T Offline
      tanvon malik
      wrote on last edited by
      #2

      Hi why not to use ShellExecute();

      http://www.tanvon.com http://tanvon.wordpress.com http://groups.yahoo.com/group/tanvon http://www.codeproject.com/script/articles/list_articles.asp?userid=1638055

      1 Reply Last reply
      0
      • Y Y_Kaushik

        I am using this code WinExec("C:\Program Files\Internet Explorer\IEXPLORE.EXE",SW_SHOW); but its not work properly

        Regard's Kaushik

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #3

        Use ShellExecute(). WinExec is provided only for compatibility with 16-bit Windows. ShellExecute( 0, "open","C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE" ,0,0,SW_SHOW);

        nave [OpenedFileFinder]

        Y 1 Reply Last reply
        0
        • N Naveen

          Use ShellExecute(). WinExec is provided only for compatibility with 16-bit Windows. ShellExecute( 0, "open","C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE" ,0,0,SW_SHOW);

          nave [OpenedFileFinder]

          Y Offline
          Y Offline
          Y_Kaushik
          wrote on last edited by
          #4

          It has also same problem . Internet expoler is not open with it

          Regard's Kaushik

          1 Reply Last reply
          0
          • Y Y_Kaushik

            I am using this code WinExec("C:\Program Files\Internet Explorer\IEXPLORE.EXE",SW_SHOW); but its not work properly

            Regard's Kaushik

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Y_Kaushik wrote:

            WinExec("C:\Program Files\Internet Explorer\IEXPLORE.EXE",SW_SHOW);

            You failed to use double backslashes.


            "A good athlete is the result of a good and worthy opponent." - David Crow

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            Y 1 Reply Last reply
            0
            • D David Crow

              Y_Kaushik wrote:

              WinExec("C:\Program Files\Internet Explorer\IEXPLORE.EXE",SW_SHOW);

              You failed to use double backslashes.


              "A good athlete is the result of a good and worthy opponent." - David Crow

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              Y Offline
              Y Offline
              Y_Kaushik
              wrote on last edited by
              #6

              Thanks you so much sir i got the solution of problem

              Regard's Kaushik

              1 Reply Last reply
              0
              • Y Y_Kaushik

                I am using this code WinExec("C:\Program Files\Internet Explorer\IEXPLORE.EXE",SW_SHOW); but its not work properly

                Regard's Kaushik

                P Offline
                P Offline
                Perspx
                wrote on last edited by
                #7

                You could try using ShellExecute()... You could implement it as follows: ShellExecute(NULL, "open", "IEXPLORE.EXE", "", "C:\Program Files\Internet Explorer\", SW_SHOWDEFAULT); This would open up Internet Explorer. To read more about ShellExecute() look at the documentation on MSDN Hope this helps! --PerspX

                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