ftp.delorie.com/archives/browse.cgi | search |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |