TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Bilow
from: Richard Hulme
date: 1995-05-03 20:21:24
subject: Newbie code

Hello Mike!

26 Apr 95, Mike Bilow writes to Doug Glenn:

 MB> You should also observe the proper case format for OS/2 API calls.  Most
 MB> of them, and all of the ones you are using here, are defined to use the
 MB> pascal calling convention (APIENTRY) which forces the names to upper case

     ^^^^^^^^^^^^^^^^^^^^^^^^^

Actually, only the 16-bit API calls (VioXXXXX, MouXXXXX etc.) are defined
to use the pascal calling convention.  All the 32-bit API calls are defined
to use the syscall (or 'system' depending on your compiler) calling
convention which is more than slightly different :-)

From OS2DEF.H from BCOS2 v1.0 (with a few lines removed, but none altered):

#ifdef __BORLANDC__
   #define APIENTRY    _syscall
   #define APIENTRY16  _far16 _pascal
#else
   #define APIENTRY    _System
   #define APIENTRY16  _Far16 _Pascal
#endif

bcnu,

Richard.

--- GoldED 2.40
* Origin: Floating Point/2 (2:250/109.10)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 250/109 25/10 250/107 255/1 440/4 141/209 270/101 105/103 42 712/515
@PATH: 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.