Solved

Compile error

Posted on 2000-03-16
3
308 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
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now