Unresolved external
-
Hi.
Ich bekomme diesen Fehler und weiss nicht wie ich es lösen kann

Dies geht ohne Fehler durch: *TGPGraphics G;
TGPGraphics *G = new TGPGraphics(cbStrokeStyle->Canvas->Handle, 0, 0); [Linker Fehler] Unresolved external '__fastcall Gdipobj::TGPGraphics::TGPGraphics(void *, int, int)' referenced from ..\UNIT2.OBJin der entsprechenden hpp steht
class PASCALIMPLEMENTATION TGPGraphics : public Gdipapi::TGdiplusBase { typedef Gdipapi::TGdiplusBase inherited; protected: __fastcall TGPGraphics(void * graphics)/* overload */; public: __fastcall TGPGraphics(HDC hdc, int NotUses1, int NotUses2)/* overload */; __fastcall TGPGraphics(HDC hdc, unsigned hdevice)/* overload */; __fastcall TGPGraphics(HWND hwnd, BOOL icm)/* overload */; __fastcall TGPGraphics(TGPImage* image)/* overload */; __fastcall virtual ~TGPGraphics(void);Wieso klappt denn das nicht? Eine Lib Datei existiert nicht.
in der selben hpp steht auch
class PASCALIMPLEMENTATION TGPPen : public Gdipapi::TGdiplusBase { typedef Gdipapi::TGdiplusBase inherited; protected: __fastcall TGPPen(void * nativePen, Gdipapi::Status status)/* overload */; public: __fastcall TGPPen(unsigned color, float width)/* overload */; __fastcall TGPPen(TGPBrush* brush, float width)/* overload */; __fastcall virtual ~TGPPen(void);und dieser Code geht ohne Fehler durch:
TGPPen *P = new TGPPen(aclWhite, 3);Warum geht dann obere TGPGraphics Zeile nicht?

Ich habe auch schon das probiert, ohne Erfolg:TGPGraphics *G = new TGPGraphics([b](HDC)[/b]cbStrokeStyle->Canvas->Handle, 0, 0);
-
Der Linker sucht die Implementierung des Konstruktors der Klasse TGPGraphics. Hast du die? Gibts vielleicht eine PAS-Datei dazu?