TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Darin McBride
from: Mario Semo
date: 1996-05-23 08:45:36
subject: Semaphores (16 & 32)

Hello Darin,

On May 21 00:19 96, Darin McBride of 1:342/708 wrote:

 DM> Since I'm using Watcom (10.6), I have the PRCP.INF 

i don't have WatCom and i don't know how clever the compiler is.

 DM> file which, handily, has DosCreateSem which wants to use \SEM\ instead.  

 DM> seems.  I created the function prototypes, having noticed 

how?

I would assume the following is correct (for VACPP). for WAtcom i can't
say. maybe you have to define the parameters as 16bit pointers too.


 #define Dos16CreateSem     DOS16CREATESEM
 #define DosCreateSem       DOS16CREATESEM

 typedef LHANDLE HSYSSEM;        /* hssm */
 typedef HSYSSEM FAR *PHSYSSEM;

 APIRET16 APIENTRY16 DosCreateSem(USHORT fExclusive
                                 ,PHSYSSEM phsem
                                 ,PSZ pszSemName);

 DM> that these functions were in OS2286.LIB, and linked with 

who links os2286.lib? is assume os2386.lib is used for 32bit programs.
(os2286.lib is for 16bit programs).

 WARPED!, Mario

--- Msgedsq/2 2.2e
* Origin: LC/32 Development Team-Vienna-Austria (2:310/14.11)
SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1
@PATH: 310/14 1 24/999 888 396/1 270/101 712/515 711/808 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™.