Von TPaintBox abgeleitete Klasse mit Destruktor
-
Hallo zusammen,
ich will gerne eine spezielle PaintBox erstellen und leite daher meine Klasse von TPaintBox ab:
class CMyPaintBox: public TPaintBox{ int** pMember; // Deshalb braucht meine Klasse einen Destruktor CMyPaintBox(); virtual ~CMyPaintBox(); // Ob virtuell oder nicht, die Fehlermeldung bleibt };
Dies liefert mir folgende Fehlermeldung:
[C++ Error] Unit1.h(14): E2113 Virtual function 'CMyPaintBox::~CMyPaintBox()' conflicts with base class 'TPaintBox'
Ich sehe den Konflikt nicht. Sieht jemand mehr?
Gruß
Martin
-
Da fehlt wohl ein __fastcall.
Borland Newsgroups
-
Jansen schrieb:
Da fehlt wohl ein [i]__fastcall.
Danke, das war's.
Martin