Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!gmdzi!strobl From: strobl@gmdzi.gmd.de (Wolfgang Strobl) Newsgroups: comp.windows.ms Subject: Re: Simple file IO in Windows3.0 Message-ID: <3453@gmdzi.gmd.de> Date: 10 Oct 90 21:14:30 GMT References: <8807@milton.u.washington.edu> <805@tuura.UUCP> Distribution: all Organization: GMD, Sankt Augustin, F. R. Germany Lines: 19 risto@tuura.UUCP (Risto Lankinen) writes: >All Windows programs are compiled with _pascal calling convention. If >the compiler lacks the declaration info, it will default to using _pascal >even if the function expects using _cdecl (as the standard C libraries in >most cases do). Is this something which has been changed between version 2 and 3 of the Windows SDK and/or version 5 and 6 of the Microsoft C compiler? I ask because what you say isn't true for the SDK ver. 2. Here you declare all callback functions PASCAL, which is defined in windows.h to be the keyword pascal. All Windows functions are declared within windows.h to be FAR PASCAL (which is defined to be far and pascal). Everything else defaults to cdecl. At least this is the case for the two C compilers I use for Windows development: Zortech C++/C 2.1 and IBM C/2 1.1. Wolfgang Strobl #include