Excel: C and FORTRAN Data Type Equivalents of DLL Codes

Last reviewed: November 3, 1994
Article ID: Q78760
The information in this article applies to:
  • Microsoft Excel for Windows, versions 3.0, 4.0

SUMMARY

Appendix A of the "Microsoft Excel Function Reference" describes the data type that corresponds to each letter used in the type_text parameter of a CALL or REGISTER function. However, it does not explicitly name the types. The following is a table of these types.

MORE INFORMATION

Letter  C Data Type     FORTRAN Data Type
------  -----------     -----------------

A       BOOL            n/a
        int             INTEGER * 2 [VALUE]

B       double          REAL * 8 [VALUE]

C       LPSTR           CHARACTER * n [FAR]
        char far *

D       n/a             n/a

E       double far *    REAL * 8 [FAR]

F       LPSTR           CHARACTER * n [FAR]
        char far *

G       n/a             n/a

H       WORD            INTEGER * 2 [VALUE]
        unsigned int

I       int             INTEGER * 2 [VALUE]

J       LONG            INTEGER * 4 [VALUE]
        long int

K       n/a             n/a

L       BOOL far *      INTEGER * 2 [FAR]
        int far *

M       int far *       INTEGER * 2 [FAR]

N       LONG far *      INTEGER * 4 [FAR]
        long int far *

O       int far *       INTEGER * 2 [FAR]
        int far *       INTEGER * 2 [FAR]
        double far *    REAL * 8 [FAR]

P       n/a             n/a

Several of the types (A, C, F, H, J, L, N) contain nonstandard C type names, given in capital letters. These types are defined in WINDOWS.H, the standard header file used when writing Windows-based applications in C. In these cases, the standard C type name is also given.

Data type O passes three arguments onto the stack: two far pointers to integer and one far pointer to an array of double-precision floating-point numbers.

REFERENCES

"Microsoft Excel Function Reference," pages 253-254


KBCategory: kbusage
KBSubcategory:

Additional reference words: 3.00 4.0 4.00 floating point double precision


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: November 3, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.