Solved

error LNK2001: unresolved external symbol _IID_IWebBrowserApp

Posted on 2000-02-29
3
652 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sumDigits challenge 9 151
difference between String.subString() and String.subSequence() 6 200
wait notify demo infinite loop 3 110
Change to event 1 113
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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