DOCERR: DISPCALC and OP_MULTIPLY

Last reviewed: July 23, 1997
Article ID: Q114972
2.01 WINDOWS kbole kbdocerr

The information in this article applies to:

  • Microsoft OLE Libraries for Windows and Win32s, version 2.01

SUMMARY

In the "OLE 2.0 Programmer's Reference," volume 2, page 12, please change the following line:

      Calculator.Op  OP_MULTIPLY

to read as follows:

      Calculator.Op = 3 ' OP_MULTIPLY

MORE INFORMATION

In order to set the Op method to multiply, you have to use the equal sign("=") to set the Op member equal to 3.

For easier reading, you should add the following line after the "DIM Calculator As Object" line:

      Const OP_MULTIPLY = 3

This allows you to use the OP_MULTIPLY value instead of the hard-coded value of 3.

This code snippet has been corrected in the Online documentation provided with Visual C++ 2.x and the Win32 SDK.


Additional reference words: 2.01
KBCategory: kbole kbdocerr
KBSubCategory: LeTwoOth
Keywords : kb16bitonly


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: July 23, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.