| | |
MFC Code bugs
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Dec 2004
Posts: 489
Reputation:
Solved Threads: 5
Hello can anyone explain the following bugs:
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?
•
•
•
•
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
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
- What Forum Do You Use? (Social Media and Online Communities)
- Windows Vista (IT Professionals' Lounge)
- C++ help for a newbie (C++)
- after a very unproductive day! - code bugs (C++)
- Using MFC in a Static Library (C++)
- Can you add pictures/sounds in a win32 console app? (C)
Other Threads in the C Forum
- Previous Thread: round robin scheduling
- Next Thread: Help! Adding together 2 functions
| Thread Tools | Search this Thread |
adobe ansi api array arrays asterisks bash binarysearch calculate centimeter char convert copyanyfile copyimagefile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic fflush file fork frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators infiniteloop initialization interest km linked linkedlist linux linuxsegmentationfault list locate logical_drives match matrix meter microsoft motherboard multi mysql number open opendocumentformat opensource owf pattern pdf performance pointer pointers posix power problem probleminc program programming pyramidusingturboccodes read recursion recv repetition scanf scheduling scripting segmentationfault send shape socketprograming stack standard string strings structures suggestions system systemcall test testautomation unix user variable voidmain() wab win32api windows.h




erialize(class CArchive &)" (?Serialize@CBook@@UAEXAAVCArchive@@@Z)
