delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/10/11:45:25

From: jstacey AT plato DOT wadham DOT ox DOT ac DOT uk (J-P)
Newsgroups: comp.os.msdos.djgpp
Subject: bcc2grx & grx - initgraph() failure
Date: 10 Apr 2000 17:01:25 +0100
Organization: Wadham College Oxford
Lines: 27
Message-ID: <8cstsl$pgb$1@plato.wadham.ox.ac.uk>
NNTP-Posting-Host: plato.wadham.ox.ac.uk
X-Trace: news.ox.ac.uk 955382486 7027 163.1.164.74 (10 Apr 2000 16:01:26 GMT)
X-Complaints-To: newsmaster AT ox DOT ac DOT uk
NNTP-Posting-Date: 10 Apr 2000 16:01:26 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

The following simple program fails, linked with libbcc2.a and libgrx20.a:

/* START */

#include <grx20.h>
#include <libbcc.h>

main()
{
  int graphdriver=DETECT,graphmode;

  initgraph(&graphdriver,&graphmode,"c:\\tc\\bgi");
}

/* FINISH */

The return error is 1, with GrSetMode() complaining to stderr that it has
received an "unknown graphics mode." Does anyone know what I'm doing
wrong, or will I have to resort to hacking through bcc2grx? 

Alternatively, does anyone know a preferred place for this query? I'd hope
that c.o.m.d was close /enough/; apologies if people think this off-topic. 

J-P
-- 
My roommate's cat chirps and twitters rather than meowing. Suddenly I can
understand her, and all she talks about is her support of Communism!

- Raw text -


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