DOCERR: Implementing Custom Font Properties Documentation

Last reviewed: October 12, 1995
Article ID: Q127956
The information in this article applies to:
  • Microsoft OLE Control Developer's Kit (CDK), versions 1.0 and 1.1

In Chapter 9 of the "CDK Programmer's Guide" from the OLE Control Development Kit Books Online, the following two lines of code are in error in the "Implementing a Custom Font Property" article:

   CFontHolder * m_fontHeading;

   -and-

   void CSampleControl::SetHeadingFont( LPFONTDISP HeadingFont )

The corrected lines should read:

   CFontHolder m_fontHeading;

   -and-

   void CSampleControl::SetHeadingFont( LPFONTDISP newValue )

In the first line, the member is an object, not a pointer. In the second line, "newValue" is the identifier name that ClassWizard generates, so you should use it unless the programmer changes the name in the argument list and in the generated function body.


Additional reference words: setfontheading set newvalue cfontholder 1.51
1.52 2.00 2.10 1.10 1.00
KBCategory: kbole kbdocerr
KBSubcategory: CDKIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 12, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.