We help IT Professionals succeed at work.

error LNK2001: unresolved external symbol _IID_IWebBrowserApp

kabhi
kabhi asked
on
711 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
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2012
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Commented:
You need to include <initguid.h> before
Exdisp.h and Exdispid.h

Author

Commented:
Thanks guys- I didn't know it has to be included only once.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.