error C3861: 'Navigate2': identifier not found

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zhang

    error C3861: 'Navigate2': identifier not found

    error C3861: 'Navigate2': identifier not found

    why???


  • SvenC

    #2
    Re: error C3861: 'Navigate2': identifier not found

    Hi zhang,
    error C3861: 'Navigate2': identifier not found
    Because you called it on a std::string instance?

    Without your code nobody can help you.

    --
    SvenC

    Comment

    • zhang

      #3
      Re: error C3861: 'Navigate2': identifier not found

      why I cannot inherit from CView??????
      class CCHtmlModView : public CView
      {
      ..............
      }
      void CCHtmlModView:: OnInitialUpdate ()
      {
      CView::OnInitia lUpdate();

      // TODO: ?????????/?????
      Navigate2(_T("h ttps://signup.live.com/newuser.aspx?mk t=ZH-CN&ts=4354482&s h=rKPn&ru=http% 3a%2f%2fmail.li ve.com%2f%3fnew user%3dyes&rx=h ttp%3a%2f%2fget .live.com%2fmai l%2foptions&rol lrs=03&lic=1"), navNoHistory|na vNoWriteToCache ,NULL);}chtmlmo dview.cpp(106) : error C3861: 'Navigate2': identifier not foundbut everything is ok in another programwhy???cl ass CCHtmlMod2View : public CHtmlView{..... .....}void CCHtmlMod2View: :OnInitialUpdat e(){ CHtmlView::OnIn itialUpdate(); Navigate2(_T("h ttps://signup.live.com/newuser.aspx?mk t=ZH-CN&ts=4354482&s h=rKPn&ru=http% 3a%2f%2fmail.li ve.com%2f%3fnew user%3dyes&rx=h ttp%3a%2f%2fget .live.com%2fmai l%2foptions&rol lrs=03&lic=1"), navNoHistory|na vNoWriteToCache ,NULL);}

      Comment

      • zhang

        #4
        Re: error C3861: 'Navigate2': identifier not found

        why I cannot inherit from CView??????
        class CCHtmlModView : public CView
        {
        .............
        }
        void CCHtmlModView:: OnInitialUpdate ()
        {
        CView::OnInitia lUpdate();
        }
        >
        // TODO: ?????????/?????
        Navigate2(_T("h ttps://signup.live.com/newuser.aspx?mk t=ZH-CN&ts=4354482&s h=rKPn&ru=http% 3a%2f%2fmail.li ve.com%2f%3fnew user%3dyes&rx=h ttp%3a%2f%2fget .live.com%2fmai l%2foptions&rol lrs=03&lic=1"), navNoHistory|na vNoWriteToCache ,NULL);}chtmlmo dview.cpp(106)
        : error C3861: 'Navigate2': identifier not found



        but everything is ok in another programwhy???
        class CCHtmlMod2View : public CHtmlView{..... .....}
        void CCHtmlMod2View: :OnInitialUpdat e()
        { CHtmlView::OnIn itialUpdate();
        Navigate2(_T("h ttps://signup.live.com/newuser.aspx?mk t=ZH-CN&ts=4354482&s h=rKPn&ru=http% 3a%2f%2fmail.li ve.com%2f%3fnew user%3dyes&rx=h ttp%3a%2f%2fget .live.com%2fmai l%2foptions&rol lrs=03&lic=1"), navNoHistory|na vNoWriteToCache ,NULL);
        }
        >
        >

        Comment

        • SvenC

          #5
          Re: error C3861: 'Navigate2': identifier not found

          Hi zhang
          why I cannot inherit from CView??????
          >...
          but everything is ok in another programwhy???
          class CCHtmlMod2View : public CHtmlView{..... .....}
          Because CView has no Navigate2 member while
          CHtmlView has that member.

          --
          SvenC

          Comment

          • zhang

            #6
            Re: error C3861: 'Navigate2': identifier not found

            Thank you very much


            "SvenC" <SvenC@nospam.n ospam>
            ??????:1586E6E2-F3DE-4C28-A25D-B4073981D1F4@mi crosoft.com...
            Hi zhang
            >
            >why I cannot inherit from CView??????
            >>...
            >but everything is ok in another programwhy???
            >class CCHtmlMod2View : public CHtmlView{..... .....}
            >
            Because CView has no Navigate2 member while
            CHtmlView has that member.
            >
            --
            SvenC
            >

            Comment

            Working...