![]() |
[c++] Komponente als variable übergeben
tach jungs tja das ist auch schon meine frage wie kann ich eine Komponente in c++ als variable übergeben spezifisch brauch ich jetzt eine Painbox wo ich darauf male (Call bei Refernce mässig :D)
Code:
aber wenn ich es so mache kommen fehler :(
void funktion(int arr[], TPaintBox& Paint)
{ paint->canvas->lineto(x,y); } |
Re: [c++] Komponente als variable übergeben
welche fehler? möglich die groß- und kleinschreibung beachten?
|
Re: [c++] Komponente als variable übergeben
danke hab es gelöst :D
Code:
so sollte es aussehen
void funktion(int arr[], TPaintBox *Paint)
{ paint->canvas->lineto(x,y); } |
Re: [c++] Komponente als variable übergeben
das Problem ist gewesen das du nicht wirklich eine TPaintBox übergibst sondern eine Instanz davon. Daher eben auch "*".
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:22 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz