Solved

Compile error

Posted on 2000-03-16
3
322 Views
Last Modified: 2008-02-01
When I compiling a program, VC5 tells me some error like this:
-------------------
Compiling...
Iacc.cpp
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
0
Comment
Question by:cookey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:nicholso
ID: 2625473
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.
0
 
LVL 1

Expert Comment

by:loumf
ID: 2625747
you need to include the file that defines the type IWebBrowser2

The help files say to include exdisp.h  to get it.
0
 

Accepted Solution

by:
wardkd earned 10 total points
ID: 2627271
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
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question