Microsoft KB Archive/78760

{| = Excel: C and FORTRAN Data Type Equivalents of DLL Codes =
 * width="100%"|

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 &quot;Microsoft Excel Function Reference&quot; 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.