www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/24/16:14:35

From: "George C. Moschovitis" <gmoscho AT alexander DOT cc DOT ece DOT ntua DOT gr>
Subject: pointer question
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Date: Sat, 24 Jun 1995 16:50:53 +0300 (EET DST)

Hi all...

	I am coding some SVGA routines at the moment and i have the following 
problem. VBE function 4f00 returns a structure which among other contains a
pointer to the video mode list :

typedef struct {
 ...
 word  	*VideoModePtr;          /* Pointer to supported modes       */
 ...
} vbe_vgainfo;

this is actually a 4 byte real mode pointer. How can i copy the data that this
pointer points to to an array declared like this:

 word  modelist[50];
 
 ie how should i convert the real mode pointer to a djgpp near pointer (void*)
 
 tmL-
 
ps1: word is a typedef (unsigned short)

ps2: i am not exactly sure of the format of the video mode pointer...
     is it segment:offset ??

ps3: the files in ftp.delorie.com/pub/djgpp/beta/v2/ have NO read permision.
     when will they be downloadable ?
     
     
tmL-   

- Raw text -


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