From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro: Displaying 640x480 PCX file Date: Sat, 07 Jun 1997 11:11:45 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 27 Message-ID: <339941F1.38A7@cs.com> References: <3398be25 DOT 7398629 AT news DOT primenet DOT com> <5nagnc$s38 AT news DOT interlog DOT com> <339bea8e DOT 18769574 AT news DOT primenet DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp108.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Mike McLean wrote: > > Thanks again for the help, but i have another problem. I don't know > how to pass the name of a file to be viewed in besides at the command > line. I'd like to be able to set it up so I can load them from with > in the program. Sorry if this is a simple question. char filename[FILENAME_MAX]; /* ... */ printf( "Enter the filename: " ); scanf( "%s", filename ); /* ... */ load_bitmap( filename, /* ... */ ); /* etc. */ Or more complex examples using Allegro's dialog box functions. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | God's final message to His Creation: | http://www.cs.com/fighteer | | "We apologize for the inconvenience."| <<< This tagline under >>> | | - Douglas Adams | <<< construction >>> | ---------------------------------------------------------------------