Re: defined in constructor

From: Jeff Partch (jeffp_at_mvps.org)
Date: 10/05/04


Date: Tue, 5 Oct 2004 16:53:09 -0500


"JSmith" <jsmithmitra@yahoo.com> wrote in message
news:eXqJfRyqEHA.896@TK2MSFTNGP12.phx.gbl...
> > So this line only appears inside the ctor and the implementation of the
> ctor
> > is only in the cpp file? Is it supposed to be a global CList or a CList
> that
> > is a member of the CWinApp class?
>
> Yes, it should be global and please know that the struct is not defind
> inside the class. So it is not part of the class. It is placed inside the
> header file (please correct me if I'm doing a wrong thing here)

I'm rather more interested in the declaration of the CList than the
struct...

-- 
Jeff Partch [VC++ MVP]


Relevant Pages

  • Re: defined in constructor
    ... right as you assumed it the MFC CWinApp derived class. ... > then I have a link list in its constructor (CPP file): ... So this line only appears inside the ctor and the implementation of the ctor ...
    (microsoft.public.vc.language)
  • Re: defined in constructor
    ... > So this line only appears inside the ctor and the implementation of the ... > is only in the cpp file? ... header file ...
    (microsoft.public.vc.language)
  • Re: C++ Compiler behavior regerding struct constructors
    ... C++ guarantees zero initialization for static variables of primitive type, ... MyStruct m_MyStruct = MyStruct; ... > struct MyStruct ... > MyClass::MyClass//The default ctor for the class does not init the ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Self Assignment check in Copy ctor
    ... > AlgoMan wrote: ... >> Do you need to provide a self assignment check in a copy ctor ...
    (comp.lang.cpp)
  • Calling a struct constructor in a class constructor body
    ... I need to call the struct ctor in the class default ctor body see below: ... struct MyStruct ...
    (microsoft.public.dotnet.languages.vc)