Solved

Compile error

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 learn how to clear a vector as well as how to detect empty vectors in C++.

810 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