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. Navigate function of a CWebBrowser class

Navigate function of a CWebBrowser class

Scheduled Pinned Locked Moved C / C++ / MFC
comhelptutorial
7 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.
  • A Offline
    A Offline
    AnayKulkarni
    wrote on last edited by
    #1

    hello to all, i want to use "Navigate" function of CWebBrowser class which i have added as an activex control in my programm, this function should get called after clicking a perticular button of a dialog box.can anybody help me plz how to do it. Anay Kulkarni

    N S 2 Replies Last reply
    0
    • A AnayKulkarni

      hello to all, i want to use "Navigate" function of CWebBrowser class which i have added as an activex control in my programm, this function should get called after clicking a perticular button of a dialog box.can anybody help me plz how to do it. Anay Kulkarni

      N Offline
      N Offline
      nbugalia
      wrote on last edited by
      #2

      CString CPPath = "http://codeproject.com"; m_Browser.Navigate( CPPath, NULL, NULL, NULL, NULL );

      A 1 Reply Last reply
      0
      • N nbugalia

        CString CPPath = "http://codeproject.com"; m_Browser.Navigate( CPPath, NULL, NULL, NULL, NULL );

        A Offline
        A Offline
        AnayKulkarni
        wrote on last edited by
        #3

        CString CPPath = "http://codeproject.com"; m_Browser.Navigate( CPPath, NULL, NULL, NULL, NULL ); i tried this, but it is giving me an error, i think it is asking for a pointer rather that "NULL" to a frame which we should create to display the web site, how to do it? Anay

        N B 2 Replies Last reply
        0
        • A AnayKulkarni

          CString CPPath = "http://codeproject.com"; m_Browser.Navigate( CPPath, NULL, NULL, NULL, NULL ); i tried this, but it is giving me an error, i think it is asking for a pointer rather that "NULL" to a frame which we should create to display the web site, how to do it? Anay

          N Offline
          N Offline
          nbugalia
          wrote on last edited by
          #4

          Add Microsoft Web Browser ActiveX control to the resource. Use class wizard to add a variable to that resource. It will ask you to add a class first. Let it do that. The variable m_Browser is added by using class wizard and it's working fine.

          1 Reply Last reply
          0
          • A AnayKulkarni

            hello to all, i want to use "Navigate" function of CWebBrowser class which i have added as an activex control in my programm, this function should get called after clicking a perticular button of a dialog box.can anybody help me plz how to do it. Anay Kulkarni

            S Offline
            S Offline
            Sameerkumar Namdeo
            wrote on last edited by
            #5

            first create the control. m_Browser.Create(); then call Navigate() VARIANT flags; flags.intVal = navNoHistory; VARIANT TargetFrameName; TargetFrameName.intVal = _BLANK; m_Browser.Navigate("http://www.codeproject.com", &flags, &TargetFrameName, NULL, NULL);

            1 Reply Last reply
            0
            • A AnayKulkarni

              CString CPPath = "http://codeproject.com"; m_Browser.Navigate( CPPath, NULL, NULL, NULL, NULL ); i tried this, but it is giving me an error, i think it is asking for a pointer rather that "NULL" to a frame which we should create to display the web site, how to do it? Anay

              B Offline
              B Offline
              bhogavalli suresh
              wrote on last edited by
              #6

              u better go for shellExecute functon try this

              A 1 Reply Last reply
              0
              • B bhogavalli suresh

                u better go for shellExecute functon try this

                A Offline
                A Offline
                AnayKulkarni
                wrote on last edited by
                #7

                yes! it worked, thanks a lot sir. Anay

                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