INF: Additional Causes of Error C2152

ID Number: Q37666

5.00 5.10 6.00 6.00a 6.00ax 7.00 | 5.00 5.10 6.00 6.00a

MS-DOS | OS/2

docerr

Summary:

Page 267 of the version 5.1 "Microsoft C Optimizing Compiler: User's

Guide", page 337 of the "Microsoft QuickC Programmer's Guide", page

315 of version 7.0 "Comprehensive Index and Errors Reference", and the

quickhelp for C 6.0 and later state that error C2152 (pointers to

functions with different attributes) is caused when the following

occurs:

An attempt was made to assign a pointer to a function declared with

one calling convention (cdecl, fortran, or pascal) to a pointer to

a function declared with a different calling convention.

This is correct, but incomplete. Additional causes are mixing near and

far function pointers and mixing interrupt and non-interrupt function

pointers.

Additional reference words: 5.10 6.00 6.00a 6.00ax 7.00