Solved

Link Problem

Posted on 2006-11-04
7
841 Views
Last Modified: 2007-12-19
What library file do I need to add?


BandToolBarCtrl.obj : error LNK2001: unresolved external symbol _IID_IHTMLWindow3
BandToolBarCtrl.obj : error LNK2001: unresolved external symbol _IID_IHTMLDocument3
ScriptedFrame.obj : error LNK2001: unresolved external symbol _IID_IActiveScriptParse32
ToolBand.obj : error LNK2001: unresolved external symbol _DIID_HTMLWindowEvents2
ToolBandObj.obj : error LNK2001: unresolved external symbol _DIID_HTMLWindowEvents2
ToolBandObj.obj : error LNK2001: unresolved external symbol _CLSID_ToolbarExtButtons
R/toolbar.dll : fatal error LNK1120: 5 unresolved externals
0
Comment
Question by:BrianGEFF719
  • 3
  • 3
7 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 17876736
You need to use

#define INITGUID
#include <initguid.h>
#include <shlguid.h>

in *one* of your source files so that the

DEFINE_GUID(CLSID_ToolbarExtButtons, 0x2ce4b5d8, 0xa28f, 0x11d2, 0x86, 0xc5, 0x0, 0xc0, 0x4f, 0x8e, 0xea, 0x99);

(for example) in 'shlguid.h' will expand to a definition at not only a declaration and the linker can use it for linking.
0
 
LVL 19

Author Comment

by:BrianGEFF719
ID: 17877201
jkr: Same link problems...
0
 
LVL 86

Expert Comment

by:jkr
ID: 17877259
Are you also linking with 'guids.lib'?
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 86

Expert Comment

by:jkr
ID: 17877270
Sorry, 'uuid.lib'.
0
 
LVL 19

Author Comment

by:BrianGEFF719
ID: 17877287
Yes, using uuid.lib.
0
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 17889538
>>>> 'shlguid.h' will expand to a definition at not only a declaration and the linker can use it for linking.

if the cpp file where you set #define INITGUID  uses precompiled header (PCH) via stdafx.h the INITGUID might be ignored or the header file wouldn't be included cause it is already included by stdafx.h.

To fix that  you should add a new cpp file to your project that contains nothing but

#define INITGUID
#include <initguid.h>
#include <shlguid.h>

as jkr has explained above. To get it compiled you have to right-click the new cpp file in the project (or solution) tree and switch off PCH in the C++ tab of the settings (properties) for that file.

Regards, Alex
0
 
LVL 19

Author Comment

by:BrianGEFF719
ID: 17896013
This problem has been resolved. The original author of the code forgot to send me a folder of headers and library files. Which fixed the problem.


Brian
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

707 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

14 Experts available now in Live!

Get 1:1 Help Now