Game Development Community

Duplicate guiBitmapCtrl

by Xavier "eXoDuS" Amado · in Torque Game Engine · 12/29/2001 (5:33 pm) · 2 replies

Im trying to duplicate the guiBitmapCtrl... i copied both files and renamed em, added em to the project and changed all instances of GuiBitmapCtrl to GuiInvItemCtrl, including the .h files and then ifndef's at the header file .... but when i try to compile i get this:

guiInvItemCtrl.obj : error LNK2001: unresolved external symbol "public: virtual class AbstractClassRep * __thiscall GuiInvItemCtrl::getClassRep(void)const " (?getClassRep@GuiInvItemCtrl@@UBEPAVAbstractClassRep@@XZ)

i dont know what the hell is wrong... :(

#1
12/30/2001 (3:30 am)
Do not forget to put the
IMPLEMENT_CONOBJECT(YourClassName);
at the start of the .cc file implementing your class. It should solve your problem.

BTW, you should have put the corresponding
DECLARE_CONOBJECT(YourClassName);
in the class definition (.h file)
#2
12/30/2001 (6:52 am)
mmm...
weird... why BitmapControl didnt had a IMPLEMENT_CONOBJECT??
it does have a declar_conobject in the header but not the implement one...
it works now thanks