delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/12/22:27:20

From: "Justine Szczap" <jmszczap82 AT adelphia DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Please help...
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <3m3T4.547$D%2.8704@news1.news.adelphia.net>
Date: Sat, 13 May 2000 02:46:23 GMT
NNTP-Posting-Host: 24.49.84.163
X-Complaints-To: abuse AT adelphia DOT net
X-Trace: news1.news.adelphia.net 958185983 24.49.84.163 (Fri, 12 May 2000 22:46:23 EDT)
NNTP-Posting-Date: Fri, 12 May 2000 22:46:23 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Can someone please try to tell me what I'm doing wrong here? This is all I
have in 'main.c':
/***** main.c *****/

#include <stdio.h>
#include <stdlib.h>
#include <allegro.h>
#include "display.h"

main()
{ 
 allegro_init();
 install_timer();
 install_keyboard();
 set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0);
 detect_digi_driver(DIGI_AUTODETECT);
 detect_midi_driver(MIDI_AUTODETECT);
 install_sound(DIGI_AUTODETECT, MIDI_AUTODETECT, "allegro.cfg");
 display_title();
 readkey();
}
... And this is all I have in 'display.h':
/***** display.h *****/

display_title()
{
 BITMAP *the_title;
 create_bitmap(640, 480);
 clear(the_title);
}
... What am I doing wrong? I have the 'allegro.cfg' file in the same directory. Everything seems to compile fine. The only problem is when I run the program it ends prematurely and gives a whole bunch of data and stack errors, etc. PLEASE HELP... Thanks...
- JS




- Raw text -


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