Knowledge Base

DOCERR: DISPCALC and OP_MULTIPLY

Article ID: 114972

Article Last Modified on 10/27/1999


APPLIES TO


This article was previously published under Q114972

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 query words: 2.01

Keywords: kbdocfix kb16bitonly kbdocerr KB114972