TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Phil Crown
from: hugo landsman
date: 1996-05-18 14:53:40
subject: Toolkit 1.3 from Devcon

hi Phil,

 PC> I ported kpop.c to 32 bits, which was basically just removing the
 PC> __loadds and far identifiers.

And that was a bit too simple:-)  You have to ensure that the data you
exchange with 16-bit functions doesn't change size.  Ie. where the 16-bit
code says 'unsigned', change to USHORT and the like.

 PC> My biggest worry is that the buffers passed to DosMonReg cannot
 PC> cross a 64k boundary.  I'm hoping there is a compiler switch I can
 PC> use to ensure this does not happen, but it will be my luck that it
 PC> is not that easy...

No, there isn't a switch, but there is _tmalloc(), which you have to use
wherever you exchange data pointers with the 16-bit functions.  It
allocates the tiled memory they need (or else the program willl coredump
seamingly at readom).  See the now functioning code I e-mailed you
yesterday;-)

groetjes,
	  hugo
--
E-mail: huug{at}telebyte.nl
* Origin: Yet Another Nightfly Point (2:283/608.5)
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: 283/608 2802/40 777 28/777 2/777 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™.