delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/20/01:31:27

From: vseth AT aol DOT com (Vseth)
Newsgroups: comp.os.msdos.djgpp
Subject: What am I doing wrong with grx22?
Date: 20 Nov 1997 05:45:33 GMT
Lines: 16
Message-ID: <19971120054501.AAA27282@ladder01.news.aol.com>
NNTP-Posting-Host: ladder01.news.aol.com
Organization: AOL http://www.aol.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am a first time user of grx22(tho a long-time user of main frames
for computations) & am having trouble getting gcc to recognise
_dpmi_regs   &
dos_ds                                                         in my code,
tho I have included the  files <g032.h>, <dpmi.h>.  Can you help me? The
 necessary changes to the DJGPP.ENV file have 
been made, but I could not successfully run the test programs that
come with grx22, since my PC (that has a Cirrus Logic GD5458, 
chip) does not have a graphics driver(as found from modetest).
Can you tell me where I can download one from?

I am yet to find a low-brow intro. to graphics, for someone who can afford to
 be only moderately interested in the details.

Thanks ,
Vseth AT aol DOT com
>   allegro_init(); /* must initialize Allegro first */
> 
> >   load_midi("mission.mid");
> 
>   MissionHandler = load_midi("mission.mid"); /*delete above line, use
> this */
> 
> >   play_midi(load_midi("mission.mid"),1);
> 
>   play_midi(MissionHandler,1); /* Delete above line, use this */
> 
> > }
> 
> Untested code, but should work.

Ok the code compiles, but it does nothing.

here is the complete code:

#include <allegro.h>

int main(void)
{
  MIDI *MissionHandler; /* need to keep track of resources */

  allegro_init(); /* must initialize Allegro first */
  install_timer();

  MissionHandler = load_midi("mib.mid"); /*delete above line, use */
  play_midi(MissionHandler,TRUE); /* Delete above line, use this */

}

I do have the file in the same directory as the compiled file

Mike.

- Raw text -


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