/ Published in: C++
                    
                                        This shows how to define the directory where the MFC file dialog should start.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 CFileDialog m_idFile( true, "exe", NULL, OFN_HIDEREADONLY, "Executables (*.exe)|*.exe|", AfxGetMainWnd()); // here comes the important line m_idFile.m_ofn.lpstrInitialDir = "C:\\winnt"; if (m_idFile.DoModal()==IDOK) { //yadayada.. }
URL: http://www.codeguru.com/forum/archive/index.php/t-146039.html
Comments
                    Subscribe to comments
                
                