Thread View: de.comp.lang.c++
3 messages
3 total messages
Started by Gunther Hahn
Wed, 18 Oct 1995 15:10
Kommandozeile und OWL
Author: Gunther Hahn
Date: Wed, 18 Oct 1995 15:10
Date: Wed, 18 Oct 1995 15:10
25 lines
1109 bytes
1109 bytes
Hallo, da ich ein kleines Windows Programm schreiben muss, und mich weder mit C++ noch mit der ObjectWindowsLibrary(OWL 2.0) von Borland sonderlich gut auskenne, hier meine Frage: ich brauche aus einer von TWindow abgeleiteten Fensterklasse TFenster Zugriff auf den Parameter lpCmdLine einer von TApplication abgeleiteten Klasse (namens TAnw), und zwar direkt in der abstrakten Definition der Klasse. Greife ich etwa in TFenster::TFenster(...) direkt TAnw::lpCmdLine ab, meldet der TurboC ++: 'TFenster' is not a public base class of TAnw. Wie kann ich drauf zugreifen ? Tschau ,Gunther -- Gunther Hahn Universitaet Passau
Re: Kommandozeile und OWL
Author: Frank Weiler
Date: Thu, 19 Oct 1995 17:50
Date: Thu, 19 Oct 1995 17:50
17 lines
1123 bytes
1123 bytes
i4hahn02@fsrz1.rz.uni-passau.de meinte am 18.10.95 zum Thema "Kommandozeile und OWL": i> ich brauche aus einer von TWindow abgeleiteten Fensterklasse TFenster i> Zugriff auf den Parameter lpCmdLine einer von TApplication abgeleiteten i> Klasse (namens TAnw), und zwar direkt in der abstrakten Definition der i> Klasse. i> Greife ich etwa in TFenster::TFenster(...) direkt i> TAnw::lpCmdLine GetApplication()->lpCmdLine liefert das gewuenschte... HIH, Frank -- It's not a trick, it's really kaputt ! ## CrossPoint v3.1 R ##
Re: Kommandozeile und OWL
Author: Raphael Posmyk
Date: Tue, 24 Oct 1995 15:09
Date: Tue, 24 Oct 1995 15:09
28 lines
1403 bytes
1403 bytes
In article <4635de$7s4@news.rz.uni-passau.de> from 18 Oct 1995 15:10:38 GMT Gunther Hahn <i4hahn02@fsrz1.rz.uni-passau.de> wrote: >Greife ich etwa in TFenster::TFenster(...) direkt > TAnw::lpCmdLine >ab, meldet der TurboC ++: > 'TFenster' is not a public base class of TAnw. >Wie kann ich drauf zugreifen ? Wenn lpCmdLine ein "public data member" der Klasse TApplication ist, kannst Du es mit: GetApplikation()->lpDmdLine abfragen. Wenn nicht, musst Deine TAnw die lpCmdLine definieren und sichern. "GetApplication()" ist, glaube ich, bereits in "TWindowObject" definiert. Raphael +-------------------------------------------------------------------+ | Raphael Posmyk (Hamburg, Germany) | | "... carpe diem, quam minimum credula postero..." (Horatius) | | Please send/reply all to raphael.posmyk@hamburg.netsurf.de | +-------------------------------------------------------------------+
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads