MFC Code bugs

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2004
Posts: 489
Reputation: Acidburn is an unknown quantity at this point 
Solved Threads: 5
Acidburn Acidburn is offline Offline
Posting Pro in Training

MFC Code bugs

 
0
  #1
Apr 27th, 2006
Hello can anyone explain the following bugs:

Book.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CBook:erialize(class CArchive &)" (?Serialize@CBook@@UAEXAAVCArchive@@@Z)
ViewBooks.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CBook:erialize(class CArchive &)" (?Serialize@CBook@@UAEXAAVCArchive@@@Z)
LSMUtility.obj : error LNK2019: unresolved external symbol "public: __thiscall CBook::~CBook(void)" (??1CBook@@QAE@XZ) referenced in function "public: virtual void __thiscall CList<class CBook,class CBook &>:erialize(class CArchive &)" (?Serialize@?$CList@VCBook@@AAV1@@@UAEXAAVCArchive@@@Z)
Debug/LSMUtility.exe : fatal error LNK1120: 2 unresolved externals
All I've done is taken my class and added the following:

Class CBook : public CObject

and added the following line to the header file:

DECLARE_SERIAL

and then the .cpp file

IMPLEMENT_SERIAL(CBook, CObject, 0)

any ideas?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC