944,116 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1349
  • C RSS
Apr 27th, 2006
0

MFC Code bugs

Expand Post »
Hello can anyone explain the following bugs:

Quote ...
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?
Similar Threads
Reputation Points: 12
Solved Threads: 5
Posting Pro
Acidburn is offline Offline
510 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: round robin scheduling
Next Thread in C Forum Timeline: Help! Adding together 2 functions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC