Mail Archives: djgpp/1997/01/10/18:42:21
On Thu, 09 Jan 1997 20:40:57 GMT genocide AT praxis DOT net (GENOCiDE) writes:
>Ok, in my struct, there is a pounter called VideoModePtr;
>
>struct VbeInfoBlock {
> ....
> unsigned *VideoModePtr;
> ....
>};
>
>I should be able to retrieve all the video modes by using:
>
>VbeInfoBlock vbeinfo;
>unsigned *p;
>for (p=vbeinfo.VideoModePtr; *p != (unsigned) -1; p++) {
> printf("Mode: 0x%x\n", *p);
>}
>
>this works under regular ANSI C, why doesn't work here? is it because
>of protected mode? Please help me!
The address returned is a RM address. You need to convert it to a PM
address (I believe with _dos_ds, the FAQ explains how to do this.)
...Chambers
>
>Thanks.....
>-GENOCiDE
>
>genocide AT praxis DOT net
>
- Raw text -