Re: How can I call an enclosing class's function?
- From: "Kelly" <kelly_greene@xxxxxxxxxxx>
- Date: Thu, 31 Mar 2005 12:09:19 -0800
Use "ConsoleWindow::OutputString()".
Make ConsoleWindow private, then add public accessor-methods to
ConsoleLib to retrieve information from ConsoleWindow.
"Eric A. Johnson" <nothere@xxxxxxxxxxxxxxxxx> wrote in message
news:ks31e.15551$C47.5018@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
>
> I have a class, ConsoleWindow, that is a member of another class,
> ConsoleLib, like so:
> class ConsoleLib
> {
> public:
> class ConsoleWindow
> {
> public:
> ConsoleWindow(HANDLE Screen, COORD Start, COORD Size, bool
Border);
> ~ConsoleWindow();
> // etc.
> }
> void OutputString(char *String);
> // etc.
> }
> How would I call a ConLib function from a ConsoleWindow constructor or
> function? I'm trying to call OutputString from ConsoleWindow's
constructor.
> Is there any way of doing this?
>
> On a side note, should the subclass ConsoleWindow be public or private?
>
> Thanks,
> Eric
>
>
.
- Prev by Date: deploying RELEASE version to IIS 6 but aspx has tracing turned on?
- Next by Date: Re: Max CPU when editing or debug.
- Previous by thread: deploying RELEASE version to IIS 6 but aspx has tracing turned on?
- Next by thread: Re: Is VS written in Managed Code ?
- Index(es):
Relevant Pages
|