• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

Windows Dialog - Non MFC

How can I convert the following MFC code into native Winodws (non MFC)
I need to create a dialog that asks to save a file(like windows dialog) and lets you select file type etc....
            CFileDialog fd(FALSE, strLitCsv, strLitPPCsv,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT , szFilter);
       
                                    if(fd.DoModal() == IDOK)
            {
                        ......
                                   }
0
pb_india
Asked:
pb_india
2 Solutions
 
Deepu AbrahamR & D Engineering ManagerCommented:
Hi ,

You need to use Common Dialog Box Library in windows.
All you have to do is call GetOpenFileName function or GetSaveFileName function.

You need to fill in the OPENFILENAME structure appropriately before you pass it inside the function.

Best Regards,
DeepuAbrahamK
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now