Application Security Testing: An Integral Part of DevOps
Click here for larger image
Environment: Visual Studio 6
DescriptionI really liked the idea of the CFileDialog macro posted here, but the interface was somewhat lacking versus the nice addin's I've gotten in the past. So using this idea I created an addin for myself and thought I would share. I tried to use the same type of interface as that of the MessageBox addin that is so nice and posted here. Enjoy!
UsageSet all options you want then click "Copy to Clipboard" and paste into your .cpp file.
ExampleUsing the settings in the above image will output:
CFileDialog cFileDlg ( TRUE, (LPCTSTR)NULL, _T("Initial Filename"), OFN_ENABLESIZING|OFN_ENABLEHOOK|OFN_EXPLORER|OFN_LONGNAMES| OFN_OVERWRITEPROMPT|OFN_CREATEPROMPT, _T("All Files (*.*)|*.*|"), this ); cFileDlg.m_ofn.lpstrTitle = _T("Your Title Here!"); // TODO: set the hook function //cFileDlg.m_ofn.lpfnHook = ;
Installing the Add-InTo install the add-in, follow these steps:
- Unzip the .dll file to the addin folder (default is \program files\microsoft visual studio\Common\MSDev98\AddIns)
- Go to Tools menu, Customize
- Go to the "Add-ins and Macro Files" tab
- Select the "CFileDialog AddIn" add-in and assign it to a hot key or put on a toolbar
DownloadsDownload compiled dll -  Kb
Download source -  Kb