Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / April 2008

Tip: Looking for answers? Try searching our database.

error C3861: 'Navigate2': identifier not found

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zhang - 14 Apr 2008 09:54 GMT
error C3861: 'Navigate2': identifier not found

why???
SvenC - 14 Apr 2008 10:05 GMT
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
zhang - 14 Apr 2008 12:26 GMT
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%2foptions
&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.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%2foptions
&rollrs=03&lic=1"),navNoHistory|navNoWriteToCache,NULL
);}
zhang - 14 Apr 2008 12:36 GMT
> why I cannot inherit from CView??????
> class CCHtmlModView : public CView
[quoted text clipped - 4 lines]
> {
> 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%2foptions
&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.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%2foptions
&rollrs=03&lic=1"),navNoHistory|navNoWriteToCache,NULL
);
}
SvenC - 14 Apr 2008 12:49 GMT
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
zhang - 14 Apr 2008 13:33 GMT
Thank you very much

"SvenC" <SvenC@nospam.nospam>
??????:1586E6E2-F3DE-4C28-A25D-B4073981D1F4@microsoft.com...
> Hi zhang
>
[quoted text clipped - 8 lines]
> --
> SvenC

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.