I’m writing my first app in MFC, and I was looking to include a very simple feature : Include a “Save To File” button that on being clicked will bring up the familiar “Save As..” Dialog box and will ultimately save the data in a text file. I couldn’t find how to invoke this dialog box – can someone just point me at the right way to do it ?
Share
What you need is CFileDialog :
There are many parameters in the CFileDialog constructor that you can change to affect how the dialog behaves, check the MSDN documentation for details.