Code Comments
Programming Forum and web based access to our favorite programming groups.error C3861: 'Navigate2': identifier not found why???
Post Follow-up to this messageHi zhang, > error C3861: 'Navigate2': identifier not found Because you called it on a std::string instance? Without your code nobody can help you. -- SvenC
Post Follow-up to this messagewhy I cannot inherit from CView??????
class CCHtmlModView : public CView
{
.............
}
void CCHtmlModView::OnInitialUpdate()
{
CView::OnInitialUpdate();
// TODO: ?????????/?????
Navigate2(_T("https://signup.live.com/newuser.aspx?mkt=ZH-CN&ts=4354482&sh=r
KPn&ru=http%3a%2f%2fmail.live.com%2f%3fnewuser%3dyes&rx=http%3a%2f%2fget.liv
e.com%2fmail%2foptions&rollrs=03&lic=1"),navNoHistory|navNoWriteToCache,NULL
);}chtmlmodview.cpp(106) :
error C3861: 'Navigate2': identifier not foundbut everything is ok in anothe
r programwhy???class CCHtmlMod2View : public CHtmlView{..........}void CCHtm
lMod2View::OnInitialUpdate(){ CHtmlView::OnInitialUpdate(); Navigate2(_T("ht
tps://signup.live.com/newu
ser.aspx?mkt=ZH-CN&ts=4354482&sh=rKPn&ru=http%3a%2f%2fmail.live.com%2f%3fnew
user%3dyes&rx=http%3a%2f%2fget.live.com%2fmail%2foptions&rollrs=03&lic=1"),n
avNoHistory|navNoWriteToCache,NULL);}
Post Follow-up to this message
> why I cannot inherit from CView??????
> class CCHtmlModView : public CView
> {
> .............
> }
> void CCHtmlModView::OnInitialUpdate()
> {
> CView::OnInitialUpdate();
}
>
> // TODO: ?????????/?????
> Navigate2(_T("https://signup.live.com/newuser.aspx?mkt=ZH-CN&ts=4354482&sh=rKPn&ru
=http%3a%2f%2fmail.live.com%2f%3fnewuser%3dyes&rx=http%3a%2f%2fget.live.com%2fmail%2
foptions&rollrs=03&lic=1" ),navNoHistory|navNoWriteToCache,NULL);}
chtmlmodview.cpp(10
6)
> : 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.aspx?mkt=ZH-CN&ts=4354482&sh=r
KPn&ru=http%3a%2f%2fmail.live.com%2f%3fnewuser%3dyes&rx=http%3a%2f%2fget.liv
e.com%2fmail%2foptions&rollrs=03&lic=1"),navNoHistory|navNoWriteToCache,NULL
);
}
>
>
Post Follow-up to this messageHi 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
Post Follow-up to this messageThank you very much "SvenC" <SvenC@nospam.nospam> ??????:1586E6E2-F3DE-4C28-A25D-B4073981D1F4@microsoft.com... > Hi zhang > > > Because CView has no Navigate2 member while > CHtmlView has that member. > > -- > SvenC >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.