Filedialog for selecting multiple files

Applications written for Just BASIC in languages other than Just BASIC
Posts: 63
Joined: Sat Oct 29, 2005 9:03 pm

Filedialog for selecting multiple files

Post by uncleBen »

Here's a C program (with source) that displays a filedialog using command-line arguments and writes the results to a file. Can be used if a filedialog is needed to select multiple files.

Includes a bas file to demo the usage. The bas file contains functions that can be copied to your program to use the filedialog.

Not entirely bugfree (there's a hard-coded limit to the buffer that receives the selection, so for example you won't be able to select all the bas files in JB folder) and may contain other bugs that I haven't found. Use at your own risk.

Edited to make multiple file select optional.

Updated version: flags for "Save" dialog, overwrite prompt and file existence test.
You do not have the required permissions to view the files attached to this post.