views:

17

answers:

1

Hi,

I created a small MFC application which has a brose button and then a dialog box. on the button event, I am able to successfully open the select file option, but when I select the file, it doesn't get displayed in the Dialog box.

How can I do that?

Please help...

A: 

Presumably you are using CFileOpenDialog? - after it returns, you need to get the selected file name from the CFileOpenDialog -

Jeff