Microsoft KB Archive/98326

= Comments Regarding Data Type E Apply to B Instead =

Article ID: 98326

Article Last Modified on 9/25/2003

-

APPLIES TO


 * Microsoft Excel Software Development Kit 4.0

-



This article was previously published under Q98326



SUMMARY
The comments in the Additional Data Type Information section on page 87 of the &quot;Excel Software Development Kit&quot; (published by Microsoft Press) regarding data type E actually apply to data type B.

Dynamic-link library (DLL) functions that return doubles by reference (data type E) need no modification to be used with Microsoft Excel. A DLL built with Borland C++ 3.1 that exports functions that return doubles by value, must use the method outlined in the above mentioned comments if those functions are to be called from Microsoft Excel.



MORE INFORMATION
The AddDbl sample function documented in the comments for data type E should be registered with type_text &quot;BBB&quot;:

=REGISTER(&quot;MY.DLL&quot;,&quot;AddDbl&quot;,&quot;BBB&quot;)

The formal parameter npDbl that appears in AddDbl's declaration can be regarded as a place holder on the stack, and should not be registered. For example, the following REGISTER call for AddDbl is incorrect:

=REGISTER(&quot;MY.DLL&quot;,&quot;AddDbl&quot;,&quot;BBBH&quot;) Incorrect, don't register npDbl

Additional query words: 3.10 4.00 SDK docerr

Keywords: KB98326

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.