delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/13/22:16:35

From: "Avi Berkovich" <berkovic AT netvision DOT net DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Newbie GFX
Date: Mon, 14 Aug 2000 04:30:01 +0300
Organization: NetVision Israel
Lines: 38
Message-ID: <8n7hmv$md9$1@news.netvision.net.il>
References: <01c004b9$f4bc0ec0$ac7297d4 AT grebo>
NNTP-Posting-Host: ppp92.ort.org.il
X-Trace: news.netvision.net.il 966216223 22953 62.0.195.101 (14 Aug 2000 01:23:43 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 14 Aug 2000 01:23:43 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hey

The source code you tried to compile was designed for Borland compilers
(judging by the _ax).
The only way to compile it using GPP would be to rerwrite some or whole of
the code, and I don't think you want to do that.

For your mode 13h problem, try this code:

#include <dpmi.h>

void somefunction()
{
__dpmi_regs r;
r.x.ax = 0x0013;
__dpmi_int(0x10, &r);
}


Avi

yidaki wrote in message <01c004b9$f4bc0ec0$ac7297d4 AT grebo>...
>Im trying to learn gfx programming in c++ but with no actual result...
>I know streams arrays and all of the basic programming but when i see a gfx
>tutorial i see all these strange words and calls ive never seen before.
>theres several links to gfx tutorial but setting mode 13 doesnt work.
>i take the example code and try to compile it with gpp but the compiler
>complains about _ax* and such not being initiated. im no expert but i
>believe thats a call to a lib i dont have or something like that. please
>help me...
>
>Robin
>
>www.robinoberg.com
>
>


- Raw text -


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