![]() |
C++: button caption abfrage?
hey,
kann mir mal jemand sagen was hier falsch ist?
Delphi-Quellcode:
Fehler ist:
void __fastcall TForm1::ToolButton2Click(TObject *Sender)
{ if (ToolButton2->Caption == "Connect") { ToolButton2->Caption = "Disconnect"; ClientSocket1->Open; // hier ist die zeile rot markiert } } Zitat:
|
Re: C++: button caption abfrage?
Code:
ClientSocket1->Open[color=red]()[/color];
|
Re: C++: button caption abfrage?
ah, sind die erforderlich, selbst wenn man keine parameter übergibt?
danke jedenfalls :) |
Re: C++: button caption abfrage?
Jupp, sind sie. Deswegen machen sie manche auch bei Delphi.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:36 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