Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CObject::CObject
CObject                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CObject();
  CObject( const CObject& objectSrc );
 
  Parameter   Description
 
  <objectSrc> A reference to another CObject.
 
  Remarks
 
  These functions are the standard CObject constructors. The default
  version is automatically called by the constructor of your derived
  class.
 
  If your class is serializable (it incorporates the IMPLEMENT_SERIAL
  macro), then you must have a default constructor (a constructor with no
  arguments) in your class declaration. If you don't need a default
  constructor, declare a private or protected "empty" constructor. For
  more information, see "How to Derive a Class from CObject" in Chapter 8
  of the <Class Libraries User's Guide>.
 
  The standard C++ default class copy constructor does a member-by-member
  copy. The presence of the private CObject copy constructor guarantees a
  compiler error message if the copy constructor of your class is needed
  but not available. You must, therefore, provide a copy constructor if
  your class requires this capability.
 
 
                                     -♦-