A
Adriano Coser
Hi. I'm declaring a property on a base class that is represented by a
pure virtual function. Something like this:
public:
__declspec( property( get=GetWidth ) ) int Width;
virtual int GetWidth() = 0;
I'm implementing GetWidth in all subclasses, but I got the following
linker error:
QIVReport error LNK2001: unresolved external symbol "public: virtual
int __thiscall TMyAbstractClass::GetWidth(void)"
(?GetWidth@TMyAbstractClass@@UAEHXZ)
If I turn the function non-pure the error desapears.
Is there a way to use a pure virtual function to represent a property?
Thanks in advance for any help.
Regards,
Adriano.
pure virtual function. Something like this:
public:
__declspec( property( get=GetWidth ) ) int Width;
virtual int GetWidth() = 0;
I'm implementing GetWidth in all subclasses, but I got the following
linker error:
QIVReport error LNK2001: unresolved external symbol "public: virtual
int __thiscall TMyAbstractClass::GetWidth(void)"
(?GetWidth@TMyAbstractClass@@UAEHXZ)
If I turn the function non-pure the error desapears.
Is there a way to use a pure virtual function to represent a property?
Thanks in advance for any help.
Regards,
Adriano.