Link to home
Start Free TrialLog in
Avatar of cookey
cookey

asked on

Compile error

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
Avatar of nicholso
nicholso

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.
ASKER CERTIFIED SOLUTION
Avatar of wardkd
wardkd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial