www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/09/05:34:41

Date: Wed, 9 Nov 94 00:22:36 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: sad AT id DOT net
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Real Mode pointers.

> This doesn't seem to work.  What do I need to do to make "convBuffer" point 
> to the "segment:offset" of the conventional memory allocated with 
> _go32_dpmi_allocated_dos_memory()?

You don't.  You convert it to a linear address (seg*16+ofs) and pass
it to dosmemget or dosmemput.  DOS memory just isn't in your
addressing space unless you use far pointers (sys/farptr.h or
dosmem*()), so you can't use a "char *" to point to it.


- Raw text -


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