www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/16/21:29:56

Message-Id: <2.2.32.19960517012342.00767908@gateway.mpath.com>
Mime-Version: 1.0
Date: Thu, 16 May 1996 18:23:42 -0700
To: djgpp AT delorie DOT com
From: Piaw Na <piaw AT mpath DOT com>
Subject: Help with DJGPP/Win95 shared memory

Thanks to "Salvador Tropea,ICE" <salvador AT inti DOT edu DOT ar>, I've at least found
the light at the end of the tunnel and it does not seem to be an incoming
train. :-)

You have to create your own descriptor using __dpmi_allocate_descriptor(),
and then set the base and limits yourself.  This will let you use Win95
shared memory through the _far* functions or _movedata.

It makes the code a bitch to get right, since if you accidentally
dereference something you crash bigtime, but otherwise, it works fine.

Scary.

Piaw
piaw AT mpath DOT com
http://www.mpath.com/~piaw

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019