From: "Gutter" Newsgroups: comp.os.msdos.djgpp References: <38852C78 DOT 46CF4D95 AT sympatico DOT ca> Subject: Re: Quick Question! Lines: 37 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: NNTP-Posting-Host: 216.54.139.58 X-Trace: tw12.nn.bcandid.com 948256660 216.54.139.58 (Tue, 18 Jan 2000 21:37:40 MST) NNTP-Posting-Date: Tue, 18 Jan 2000 21:37:40 MST Organization: bCandid - Powering the world's discussions - http://bCandid.com Date: Wed, 19 Jan 2000 04:37:40 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Are you typing at the command line: ex15 imagefile.bmp You have to tell it what image file it is going to show. Gutter http://impee3.hypermart.net The Impee3 Car Player BRAD MURPHY wrote in message <38852C78 DOT 46CF4D95 AT sympatico DOT ca>... > Hi, I was wondering if somebody could please >help me by explaining the following blurb of code. > >int main(int argc, char *argv[]) >{ > BITMAP *the_image; > PALLETE the_pallete; > > if (argc != 2) { > printf("Usage: 'ex15 filename.[bmp|lbm|pcx|tga]'\n"); > return 1; > } >(This is from the allegro example ex15.c) > I am trying to learn how to load and display a bitmap, but >I can't get this example to work for me, and it has to do >with the above code. There is of course more code, but >when I run the executable, the program ends immediately >with the above printf's statement! > >Thank you to anybody who offers help. > >B.Murphy >