delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/10/08:13:41

Date: Wed, 10 May 2000 08:23:31 -0400 (EDT)
Message-Id: <200005101223.IAA11807@indy.delorie.com>
From: Eli Zaretskii <eliz AT delorie DOT com>
To: "AndrewJ" <luminous-is AT home DOT com>
CC: djgpp AT delorie DOT com
In-reply-to: <6P8S4.14998$55.285097@news2.rdc1.on.home.com>
(luminous-is AT home DOT com)
Subject: Re: __dpmi_paddr and DJGPP pointers
References: <034f2f50 DOT 765f03be AT usw-ex0108-062 DOT remarq DOT com> <6P8S4.14998$55 DOT 285097 AT news2 DOT rdc1 DOT on DOT home DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "AndrewJ" <luminous-is AT home DOT com>
> Date: Wed, 10 May 2000 08:09:38 GMT
> 
> > An "easy" question but I'm not 100% sure how to tackle it.
> >
> > How do you convert a __dpmi_paddr structure into a void*
> > pointer??
> >
> > ie.
> >
> > struct __dpmi_paddr{
> >    short selector;
> >    int offset32;
> > };
> 
> ...
> struct __dpmi_paddr dpaddr;
> void *foozle = (void *)  &dpaddr;

I don't think this is what the original poster wanted.  I think he
wanted a way of converting the selector:offset32 pair into a pointer
that can be dereferenced to get at the data at that address.

- Raw text -


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