Select file in a windows explorer box

I am making a program in which the user needs to select a file. I have seen a lots of programs that has a browse button, and a windows explorer window appears. It will be used to select a file, and return the file path as a string. How can i do this?
Use the Common Dialog API. For your reference:

The code example on that page shows how to show the Open dialog and get the results.
Most simple way is tio just use legacy GetOpenFileName() API:
Topic archived. No new replies allowed.