Solved

error LNK2001: unresolved external symbol _IID_IWebBrowserApp

Posted on 2000-02-29
3
650 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
ID: 2570493
Did you

#define INITGUID

before including the header files?
0
 
LVL 8

Expert Comment

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

Author Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
move a line in eclipse 3 80
Window placement 17 75
withoutTen challenge 14 99
sumHeights2  challenge 7 87
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

912 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

17 Experts available now in Live!

Get 1:1 Help Now