Correction for Basic Calling POWER2, "Mixed-Language": Page 81 (48479)
This article was previously published under Q48479
SUMMARY
The following correction applies to Page 81 of the "Microsoft
Mixed-Language Programming Guide," which is provided with C Versions
5.00 and 5.10, Macro Assembler Versions 5.00 and 5.10, and Pascal
Version 4.00 (but is NOT provided with QuickBasic Version 4.00, 4.00b,
or 4.50, Microsoft Basic Compiler Version 6.00 or 6.00b, or Microsoft
Basic Professional Development System (PDS) Version 7.00).
On Page 81 of the "Microsoft Mixed-Language Programming Guide," the
Basic program example is incomplete. The structure of the code as
shown incorrectly returns a value of 0 (zero) for the POWER2 assembler
function. This error occurs because POWER2(3,5) is interpreted by
Basic to be an array as opposed to a FUNCTION as it was intended to
be.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB48479 |
|