473,725 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I have a problem of "unresolved external symbol"...

Hello all,
I'm a beginner of COM programming, I have a exercise, but got a compile
error with
ComFortuneTelle r.obj : error LNK2001: unresolved external symbol
_IID_IQuotation
ComFortuneTelle r.obj : error LNK2001: unresolved external symbol
_IID_IFortuneTe ller

I don't known what's wrong with my code(I refer to the demo code from
"COM/DCOM Primer plus").

I upload my code and the demo code from the book:
my code: http://vipweb.url.com.tw/awin/Fortune3.rar
demo code: http://vipweb.url.com.tw/awin/Fortune3_Demo.rar

Thanks for your help!
Jan 23 '06 #1
1 1515
IID values are interface identifiers of type GUID.
you have to include initguid.h before you include the headers that conatin
the IID declaration.

this will result in an instance of the GUID instead of just the declaration.
after that it will link fine.

check out knowledge base article Q130869 in msdn for more information.

kind regards,
Bruno.
"Awin" wrote:
Hello all,
I'm a beginner of COM programming, I have a exercise, but got a compile
error with
ComFortuneTelle r.obj : error LNK2001: unresolved external symbol
_IID_IQuotation
ComFortuneTelle r.obj : error LNK2001: unresolved external symbol
_IID_IFortuneTe ller

I don't known what's wrong with my code(I refer to the demo code from
"COM/DCOM Primer plus").

I upload my code and the demo code from the book:
my code: http://vipweb.url.com.tw/awin/Fortune3.rar
demo code: http://vipweb.url.com.tw/awin/Fortune3_Demo.rar

Thanks for your help!

Jan 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
10082
by: Rodolphe | last post by:
Hello, I'm French so sorry for my approximate English. When I try to compile a project under Visual C++ 6.0, I've got the following errors : applicap.obj : error LNK2001: unresolved external symbol _IID_ISampleGrabber applicap.obj : error LNK2001: unresolved external symbol _CLSID_NullRenderer applicap.obj : error LNK2001: unresolved external symbol
4
13539
by: Mastadex | last post by:
So here is my Code: template <class T> struct Nodes { T *Data; // The Image char Name; // The Name of the image Nodes<T> *Prev; Nodes<T> *Next;
0
5375
by: Cris | last post by:
Hi I´m converting a VC6 Project to VC7 and I´m having the follow problem: error LNK2019: unresolved external symbol "public: class ATL::CStringT<char,class StrTraitMFC<char,class ATL::ChTraitsCRT<char> > > __thiscall CdbLastOLEError::GetDescription(void)" (? GetDescription@CdbLastOLEError@@QAE?AV?$CStringT@DV? $StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@XZ) referenced
4
2797
by: naveenadevi | last post by:
Hi, I'm trying to use some power management features with windowsx xp and I have visual studio .net 2003 installed. As per documentation of ACPI, you can use the power options by including the Powrprof.h file and use the Powrprof.lib file in your project, which I did, but when I build, it compiles fine but I get this Link error.. :
0
1418
by: Simon | last post by:
Hi All, I have come across a problem with a bog std MFC app linking to bog std MFC extension dll - both generated by the wizards. The code is set out below. The trouble is with the static member variable of CTest. Can anyone help?
1
3274
by: karthikvis | last post by:
Hi, I would really appreciate it of someone could help me. I tried compiling a source code which references header files from another directory on my hard disk (not the default VC++ header files directory). I added this directory name as an extra line in "Tools>Options>Directories..." for include files. My source code looks like this : #include "IGESControl_Reader.hxx" #include "TColStd_HSequenceOfTransient.hxx" #include...
0
456
by: =?Utf-8?B?TWF0ZXVzeiBSYWpjYQ==?= | last post by:
Hi! How can I fix this error? Error 1 error LNK2001: unresolved external symbol "extern "C" long __stdcall SHFlushClipboard(void)" (?SHFlushClipboard@@$$J10YGJXZ) UnmanagedTest.obj Basically I am calling the SHFlushClipboard method from "shlobj.h" (Win32) in a managed c++ app. ~Matt
8
4894
by: amievil | last post by:
Hello. I'm devloping MFC program and found something weird happening. When I compile it with "debug mode", it compile fine, and runs fine. however, when I compile with "release mode", I get a bunch of "unresolved external symbol _imp_FtpFindFirstFileA@20.......blah blah." errors. Can someone explain why this is happening and how to fix it? Thank you.
7
3109
by: JustBeSimple | last post by:
Hi Everyone, I'm having a problem compiling useing the VS2005 .NET I need help to resolve those error, I try to create a new project it doesn't help any suggestion? I got the following errors: vector_main.obj : error LNK2019: unresolved external symbol "public: __thiscall Vector<int>::~Vector<int>(void)" (??1?$Vector@H@@QAE@XZ) referenced in function _main
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.