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 to add webbrowser controle to visual c++ 6 MFC project

How to add webbrowser controle to visual c++ 6 MFC project

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
16 Posts 4 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.
  • M Offline
    M Offline
    method007
    wrote on last edited by
    #1

    Hi all. could any one tell me how i can add webbrowser controle to my visual c++ 6 MFC project? I already have project made byMFC AppWizard which has a few conroles such as buttons an textbox/editbox and i want to add to it a webbrowser controle.Thanks

    L D M 3 Replies Last reply
    0
    • M method007

      Hi all. could any one tell me how i can add webbrowser controle to my visual c++ 6 MFC project? I already have project made byMFC AppWizard which has a few conroles such as buttons an textbox/editbox and i want to add to it a webbrowser controle.Thanks

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Examples exist on MSDN and likely here on CodeProject as well. Did you search at all? :sigh: http://www.codeproject.com/cpp/htmleditvc6.asp[^]

      "Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
      Colin Angus Mackay in the C# forum

      led mike

      M 1 Reply Last reply
      0
      • L led mike

        Examples exist on MSDN and likely here on CodeProject as well. Did you search at all? :sigh: http://www.codeproject.com/cpp/htmleditvc6.asp[^]

        "Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
        Colin Angus Mackay in the C# forum

        led mike

        M Offline
        M Offline
        method007
        wrote on last edited by
        #3

        man i am using MFC with dialog and just want to display a webpage in part of a form. But that example never talkes bout url!! All i want to dispaly a site such www.cnn.com inside the form just like visual basic webbrowser controle.

        L 1 Reply Last reply
        0
        • M method007

          Hi all. could any one tell me how i can add webbrowser controle to my visual c++ 6 MFC project? I already have project made byMFC AppWizard which has a few conroles such as buttons an textbox/editbox and i want to add to it a webbrowser controle.Thanks

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

          Have you considered the WebBrowser Control (shdocvw.dll)?


          "The largest fire starts but with the smallest spark." - David Crow

          "Judge not by the eye but by the heart." - Native American Proverb

          M 1 Reply Last reply
          0
          • D David Crow

            Have you considered the WebBrowser Control (shdocvw.dll)?


            "The largest fire starts but with the smallest spark." - David Crow

            "Judge not by the eye but by the heart." - Native American Proverb

            M Offline
            M Offline
            method007
            wrote on last edited by
            #5

            I just want to load a URL inside my application just like visual basic 6 and i do not know how. I am looking for easy way . could u tell me how to use shdocvw.dll ?Thanks

            D 1 Reply Last reply
            0
            • M method007

              man i am using MFC with dialog and just want to display a webpage in part of a form. But that example never talkes bout url!! All i want to dispaly a site such www.cnn.com inside the form just like visual basic webbrowser controle.

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              method007 wrote:

              But that example never talkes bout url!!

              Then do a freakin search and find one that does, there are hundereds of them including on the MSDN site! :~

              "Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
              Colin Angus Mackay in the C# forum

              led mike

              M 1 Reply Last reply
              0
              • M method007

                I just want to load a URL inside my application just like visual basic 6 and i do not know how. I am looking for easy way . could u tell me how to use shdocvw.dll ?Thanks

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

                method007 wrote:

                could u tell me how to use shdocvw.dll ?

                Project --> Add To Project --> Components and Controls.


                "The largest fire starts but with the smallest spark." - David Crow

                "Judge not by the eye but by the heart." - Native American Proverb

                M 1 Reply Last reply
                0
                • L led mike

                  method007 wrote:

                  But that example never talkes bout url!!

                  Then do a freakin search and find one that does, there are hundereds of them including on the MSDN site! :~

                  "Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
                  Colin Angus Mackay in the C# forum

                  led mike

                  M Offline
                  M Offline
                  method007
                  wrote on last edited by
                  #8

                  If u do not want to help some one do not try to flame. i am new to visual c++ world so if u do not want to help just do not reply!! very simple. do not think every one is in same level!!

                  L 1 Reply Last reply
                  0
                  • D David Crow

                    method007 wrote:

                    could u tell me how to use shdocvw.dll ?

                    Project --> Add To Project --> Components and Controls.


                    "The largest fire starts but with the smallest spark." - David Crow

                    "Judge not by the eye but by the heart." - Native American Proverb

                    M Offline
                    M Offline
                    method007
                    wrote on last edited by
                    #9

                    could u tell me what is the controle path for it ? furthermore , how to load the url using this method?

                    D 1 Reply Last reply
                    0
                    • M method007

                      could u tell me what is the controle path for it ? furthermore , how to load the url using this method?

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

                      method007 wrote:

                      furthermore , how to load the url using this method?

                      Use either the Navigate() or Navigate2() method.


                      "The largest fire starts but with the smallest spark." - David Crow

                      "Judge not by the eye but by the heart." - Native American Proverb

                      M 1 Reply Last reply
                      0
                      • M method007

                        Hi all. could any one tell me how i can add webbrowser controle to my visual c++ 6 MFC project? I already have project made byMFC AppWizard which has a few conroles such as buttons an textbox/editbox and i want to add to it a webbrowser controle.Thanks

                        M Offline
                        M Offline
                        Maximilien
                        wrote on last edited by
                        #11

                        Once you added the component ( as david wrote ), you can use the IHTMLDocument2 interface to access the HTML document, and directly write HTML code ( text ) to the document. if you want to navigate to an existing document ( on disk or from the web ) you need to Navigate from the IWebBrowser2 interface. do a little explorating on CodeProject, you will find pretty much what you want.


                        Maximilien Lincourt Your Head A Splode - Strong Bad

                        1 Reply Last reply
                        0
                        • D David Crow

                          method007 wrote:

                          furthermore , how to load the url using this method?

                          Use either the Navigate() or Navigate2() method.


                          "The largest fire starts but with the smallest spark." - David Crow

                          "Judge not by the eye but by the heart." - Native American Proverb

                          M Offline
                          M Offline
                          method007
                          wrote on last edited by
                          #12

                          but how to know the path of controle and what should i do with navaigate? it seems like this is lunching a rocket to space processs!!!

                          D 1 Reply Last reply
                          0
                          • M method007

                            but how to know the path of controle and what should i do with navaigate? it seems like this is lunching a rocket to space processs!!!

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

                            method007 wrote:

                            but how to know the path of controle...

                            Most, but not all, reside in the \Windows\System32 folder. However, there's rarely a need to know such information. Once a control has been registered with the OS, its path is mostly irrelevant.

                            method007 wrote:

                            ...what should i do with navaigate?

                            Pass it a URL.


                            "The largest fire starts but with the smallest spark." - David Crow

                            "Judge not by the eye but by the heart." - Native American Proverb

                            M 1 Reply Last reply
                            0
                            • M method007

                              If u do not want to help some one do not try to flame. i am new to visual c++ world so if u do not want to help just do not reply!! very simple. do not think every one is in same level!!

                              L Offline
                              L Offline
                              led mike
                              wrote on last edited by
                              #14

                              method007 wrote:

                              do not think every one is in same level!!

                              Same level? Can't you read? The Sample/Example code you ask for is free for the "reading" on MSDN like I told you three times now. Telling you where you can find what you asked for is not a "flame". If you really want to be flamed just let me know.

                              "Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
                              Colin Angus Mackay in the C# forum

                              led mike

                              1 Reply Last reply
                              0
                              • D David Crow

                                method007 wrote:

                                but how to know the path of controle...

                                Most, but not all, reside in the \Windows\System32 folder. However, there's rarely a need to know such information. Once a control has been registered with the OS, its path is mostly irrelevant.

                                method007 wrote:

                                ...what should i do with navaigate?

                                Pass it a URL.


                                "The largest fire starts but with the smallest spark." - David Crow

                                "Judge not by the eye but by the heart." - Native American Proverb

                                M Offline
                                M Offline
                                method007
                                wrote on last edited by
                                #15

                                david i still did not get my answers . What should i do here as u see in the pic and also how to specify the url that i want to load ? could tell me step by step as this is my first attemp to work this method.Thanks [IMG]http://i5.photobucket.com/albums/y180/method007/component.jpg\[/IMG\]

                                D 1 Reply Last reply
                                0
                                • M method007

                                  david i still did not get my answers . What should i do here as u see in the pic and also how to specify the url that i want to load ? could tell me step by step as this is my first attemp to work this method.Thanks [IMG]http://i5.photobucket.com/albums/y180/method007/component.jpg\[/IMG\]

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

                                  method007 wrote:

                                  What should i do here...

                                  Double-click Registered ActiveX Controls. BTW, <IMG> tags are not supported.


                                  "The largest fire starts but with the smallest spark." - David Crow

                                  "Judge not by the eye but by the heart." - Native American Proverb

                                  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