Re: defined in constructor

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: JSmith (jsmithmitra_at_yahoo.com)
Date: 10/05/04


Date: Tue, 5 Oct 2004 14:43:01 -0700


> 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)

regards,



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
    ... "JSmith" wrote in message ... >> So this line only appears inside the ctor and the implementation of the ... >> is only in the cpp file? ... it should be global and please know that the struct is not defind ...
    (microsoft.public.vc.language)
  • Common Environment Object Model: getting the path to the cpp file a certain class is implemented in
    ... Say we have a CodeClass object and call AddFunction() on it. ... the call will end up with the function declaration ... in the header file for that class and the implementation in the cpp file. ...
    (microsoft.public.vsnet.general)
  • Re: Novice - Advice required
    ... > a seperate .cpp file (or header file?) and then whenever I want to ... int XYX::doTask ...
    (microsoft.public.vc.language)
  • Re: C++ header file
    ... Why not just have 1 CPP file and include the CPP file instead of ... In Java, there is no header file, each object is .java file. ... Separation of declaration and definition is very practical thing. ... It is sufficient to see only function's declaration in order to successfully compile a code that calls it. ...
    (microsoft.public.vc.language)