Open Folder & Double Click file to use in program

Hey guys,

I've read a bunch of discussions about items similar to what I'm looking for but nothing exact or useful enough to use.

Instead of getline(cin,FileName); //where the user types in the FileName
I want to open a folder that has a list of possible files to choose from then allow the user to click or double click his/her choice

Right now i have:
getline (cin, FileName); //user types in desired file
InFile.open(Filename.c_str()); //Opening desired file

I'm looking for something similar to:
system("explorer C:\\Visual Studio 2008\\Decrypt"); //opens folder w/files
//let user double click a desired file & store into FileName - PROBLEM
InFile.open(Filename.c_str()); //Opening desired file

No joke...I've been at this for hours.

Any help is greatly appreciated
webJose:
I believe this is what I'm looking for. Thank a lot for pointing me in the right direction. I'll post the completed work when I'm done for others to have an example.
Topic archived. No new replies allowed.