"with" (Delphi) auch in C++
-
Hallo,
Ich wollte mal fragen, ob es in C++ sowas wie "with" in Delphi gibt, d.h.:
with object [as KLASSE] do begin end;
Vielen Dank
unknown_user
-
Nein.
-
Muss ich dann immer so was schreiben
this->notifyIcon1->ContextMenuStrip = this->contextMenuStrip1; this->notifyIcon1->Visible = false; ...
oder ist auch sowas zulässig:
System::Windows::Forms::NotifyIcon^ icon = this->notifyIcon1; icon->ContextMenuStrip = this->contextMenuStrip1; icon->Visible = false; ...
Vielen Dank
unknown_user
-
unkwnown_user schrieb:
oder ist auch sowas zulässig:
System::Windows::Forms::NotifyIcon^ icon = this->notifyIcon1; icon->ContextMenuStrip = this->contextMenuStrip1; icon->Visible = false; ...
Ja.