• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

Compile error

When I compiling a program, VC5 tells me some error like this:
F:\abc.h(51) : error C2065: 'IWebBrowser2' : undeclared identifier
I think some liberary are not include in my project, I want to know 'IWebBrowser2' declare in which  head file or how can I Import IE controls ActiveX to my project?

I am using Visual C++ 5.0
1 Solution
Well, the first thing you should do is load the project and try to find the definition of IWebBrowser2. You can probably right-click on it and select, "find definition" or something like that.

You are probably right that you just haven't included a certain library. I'm not familar with that control, I assume it's a microsoft control?

According to the online help, you need to include the file Exdisp.h.
you need to include the file that defines the type IWebBrowser2

The help files say to include exdisp.h  to get it.
I'm assuming that you are trying to compile an existing VC6 project, as IWebBrowser2 is a struct defined in VC6
(defined in commdef.h)

It's not available in VC5
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now