Board index » cppbuilder » THintWindow linking problem
Mauro
![]() CBuilder Developer |
THintWindow linking problem2008-02-03 07:57:10 PM cppbuilder9 Hi all, I have made an own class to overwrite the Paint method of the THintWindow class: Header file: class TExtraHintWindow : public THintWindow { protected: void __fastcall Paint(void); public: __fastcall TExtraHintWindow(TComponent *Owner); }; //--------------------------------------------------------------------------- Source file: __fastcall TExtraHintWindow::TExtraHintWindow(TComponent *Owner) : THintWindow(Owner) { } //--------------------------------------------------------------------------- void __fastcall TExtraHintWindow::Paint(void) { Canvas->Font->Color = clRed; THintWindow::Paint(); } //--------------------------------------------------------------------------- Main form source file: class THauptformular : public TForm { .... private: TExtraHintWindow *HintFenster; ..... } //--------------------------------------------------------------------------- When I compile this and link my program it works fine. But when I use the new statement in the coding: __fastcall THauptformular::THauptformular(TComponent *Owner) : TForm(Owner) { HintFenster = new TExtraHintWindow(this); } //--------------------------------------------------------------------------- then I get no compiling but linking errors: [Linking Error] Error: Unsolved external '__fastcall Controls::THintWindow::NCPaint(void *)' referenced from C:\DOKUMENTE UND EINSTELLUNGEN\MARIUS\EIGENE DATEIEN\BORLAND STUDIO-PROJEKTE\MAURO MANAGER 1.5\DEBUG_BUILD\HAUPTFENSTER.OBJ This file Hauptfenster is my main form source file. I don't understand the problem here. Has someone an idea? Regards, Mauro |