| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Semaphores (16 & 32) |
PF> If you try to compile it for 32bits, you might have to
PF> change the sem calls to "Dos16CreateSem", etc, and
DM> Hmmm... from a scan of all 1MB of the \WATCOM\h\os2 directory, there is
DM> no 'Dos16' calls. :-/ Even scanning DOSCALL1.DLL,
Try looking in os2386.lib.
Since you've found smserial.dll, I think you're wasting your time trying
to create the 16bit sems directly from 32bit code.
Here is the all the work you need to do: Place this in your 32bit C code
(if it is C++, use extern "C" {}). The compiler will handle the
1632 conversion by itself:
void pascal _far16 BbsSemSerialize(char *pszSemName, char *pszSemEnv);
(You're using watcom, right? If IBM, change __far16 to _Far16)
Set both parameters to NULL, and it will use "/sem/squish/default".
--- Maximus/2 3.00
* Origin: Sol 3 * Toronto * V.32 * (905)858-8488 (1:259/414)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: 259/414 400 99 250/99 3615/50 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™.