Solved

error LNK2001: unresolved external symbol _IID_IWebBrowserApp

Posted on 2000-02-29
3
649 Views
Last Modified: 2013-11-20
Hi

I'm using:
HRESULT hr = CoCreateInstance(CLSID_InternetExplorer, NULL, CLSCTX_ALL, IID_IWebBrowserApp, (LPVOID *) &m_pIE);

and the error:
error LNK2001: unresolved external symbol _IID_IWebBrowserApp

is coming.

Could anyone help? I'm including the file Exdisp.h and Exdispid.h, and am using VC++ 5.0

Thanks in advance.

Rgds.
Abhi
0
Comment
Question by:kabhi
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 total points
Comment Utility
Did you

#define INITGUID

before including the header files?
0
 
LVL 8

Expert Comment

by:gelbert
Comment Utility
You need to include <initguid.h> before
Exdisp.h and Exdispid.h
0
 

Author Comment

by:kabhi
Comment Utility
Thanks guys- I didn't know it has to be included only once.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

6 Experts available now in Live!

Get 1:1 Help Now