954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

savefiledialog in a dialog window

Hi,
I’ve written a Windows application in Visual Studio .NET using C++. The main window of my application is a dialog window. I need to display a Save File Dialog window when one of the buttons on my main window is clicked. But my main window is a dialog window so I don’t have in the Toolbox the SaveFileDialog control. How can I manage to perform the SaveFile window visualization? I tried to instance SaveFileDialog class with the “new” operator but maybe I’m forgetting to include the correct library…
Thank you

aidi.morini
Newbie Poster
9 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

in the button's event handler call GetSaveFileName()

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 
in the button's event handler call GetSaveFileName()



Thank you very much, it works!!!
Sorry for the trivial question but it is not easy to find documentation on dialog window based application....
Thank you again!

aidi.morini
Newbie Poster
9 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 
Thank you very much, it works!!! Sorry for the trivial question but it is not easy to find documentation on dialog window based application.... Thank you again!

In windows programming there is no such thing as atrival question:cheesy:

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You