Mail Archives: djgpp/2000/01/18/23:28:34
| Message-ID: | <38852C78.46CF4D95@sympatico.ca>
|
| From: | BRAD MURPHY <bjmurphy AT sympatico DOT ca>
|
| X-Mailer: | Mozilla 4.05 [en]C-SYMPA (Win95; I)
|
| MIME-Version: | 1.0
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Quick Question!
|
| Lines: | 23
|
| Date: | Wed, 19 Jan 2000 03:21:39 GMT
|
| NNTP-Posting-Host: | 216.209.14.149
|
| X-Trace: | news20.bellglobal.com 948252099 216.209.14.149 (Tue, 18 Jan 2000 22:21:39 EDT)
|
| NNTP-Posting-Date: | Tue, 18 Jan 2000 22:21:39 EDT
|
| Organization: | Sympatico
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
| Reply-To: | djgpp AT delorie DOT com
|
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
- Raw text -