Mail Archives: djgpp/1997/06/11/22:31:59
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 >>> |
---------------------------------------------------------------------
- Raw text -