Can someone please post a sample C++ snippet from VC++ 6 that will make one of those dialog boxes popup so I can have the user just point to the file they want to open and hit ok to store the location and open the file?
Thanks in advance.
Can someone please post a sample C++ snippet from VC++ 6 that will make one of those dialog boxes popup so I can have the user just point to the file they want to open and hit ok to store the location and open the file?
Thanks in advance.
Well, I think this is a more specific windows programming question, so, you'll find more answers in the windows programming board.
moved ...
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
They're referred to as 'common dialog boxes'.
Search this board for GetOpenFileName. You might also want to look at GetSaveFileName.
Don't forget to read up on those functions on msdn (examples there too):
GetOpenFileName
GetSaveFileName
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
First of all, I am using MFC, secondly, sorry for putting this here instead of the windows board, and third, the msdn isn't helping...