Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

file open/save dialog

Options
  • 01-07-2004 11:11am
    #1
    Registered Users Posts: 1,366 ✭✭✭


    Hey guys,

    Still working on my win32 application.

    I'm trying to allow for the opening and saving of files within the application.

    There seems to be a lot of stuff on google for MFCs, but is there an easy way to pop up the file-open dialog in win32. And a simple way to pop up a file save dialog?

    Any advcice much appreciated!

    King


Comments

  • Registered Users Posts: 7,468 ✭✭✭Evil Phil


    Coming from a VB point of view but comdlg32.dll has a GetSaveFileName function and a GetOpenFileName function that should open the dialogs you want. They both take an OPENFILENAME stucture as an argument.

    Here's the Common Dialog skinny on MSDN.


  • Registered Users Posts: 1,366 ✭✭✭king_of_inismac


    Thanks man,

    Thats exactly what I'm looking for!

    Cheers!


Advertisement