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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

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!
 
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.
 
Back
Top