error C3861: 'Navigate2': identifier not found

Z

zhang

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

// TODO: ?????????/?????
Navigate2(_T("https://signup.live.com/newuser.asp...p://get.live.com/mail/options&rollrs=03&lic=1"),navNoHistory|navNoWriteToCache,NULL);}chtmlmodview.cpp(106) : error C3861: 'Navigate2': identifier not foundbut everything is ok in another programwhy???class CCHtmlMod2View : public CHtmlView{..........}void CCHtmlMod2View::OnInitialUpdate(){ CHtmlView::OnInitialUpdate(); Navigate2(_T("https://signup.live.com/newuser.asp...p://get.live.com/mail/options&rollrs=03&lic=1"),navNoHistory|navNoWriteToCache,NULL);}
 
Z

zhang

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

// TODO: ?????????/?????
Navigate2(_T("https://signup.live.com/newuser.asp...p://get.live.com/mail/options&rollrs=03&lic=1"),navNoHistory|navNoWriteToCache,NULL);}chtmlmodview.cpp(106)
: error C3861: 'Navigate2': identifier not found




but everything is ok in another programwhy???
class CCHtmlMod2View : public CHtmlView{..........}
void CCHtmlMod2View::OnInitialUpdate()
{ CHtmlView::OnInitialUpdate();
Navigate2(_T("https://signup.live.com/newuser.asp...p://get.live.com/mail/options&rollrs=03&lic=1"),navNoHistory|navNoWriteToCache,NULL);
}
 
S

SvenC

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top