Click here to Skip to main content
15,914,780 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl Pin
Marc Soleda2-Aug-05 4:40
Marc Soleda2-Aug-05 4:40 
GeneralRe: CListCtrl Pin
Halawlaws2-Aug-05 4:49
Halawlaws2-Aug-05 4:49 
GeneralRe: CListCtrl Pin
BadKarma2-Aug-05 4:41
BadKarma2-Aug-05 4:41 
GeneralRe: CListCtrl Pin
Halawlaws2-Aug-05 4:49
Halawlaws2-Aug-05 4:49 
GeneralPlease check this code... Pin
Aqueel2-Aug-05 4:07
Aqueel2-Aug-05 4:07 
GeneralRe: Please check this code... Pin
Chris Losinger2-Aug-05 4:08
professionalChris Losinger2-Aug-05 4:08 
GeneralRe: Please check this code... Pin
Marc Soleda2-Aug-05 4:24
Marc Soleda2-Aug-05 4:24 
GeneralRe: Please check this code... Pin
Jose Lamas Rios2-Aug-05 7:46
Jose Lamas Rios2-Aug-05 7:46 
The assertion is this, right?
CString CFileDialog::GetFolderPath() const
{
   ASSERT(::IsWindow(m_hWnd));
 
   [...]
 
}

It means that calling CFileDialog::GetFolderPath is only allowed while the file dialog is active, and not after DoModal has returned, as it is your case.

If you are only interested in the folder for the selected file, consider using SHBrowseForFolder instead of CFileDialog.

--
jlr
http://jlamas.blogspot.com/[^]
GeneralCList Pin
Smith#2-Aug-05 3:08
Smith#2-Aug-05 3:08 
GeneralRe: CList Pin
Marc Soleda2-Aug-05 3:16
Marc Soleda2-Aug-05 3:16 
GeneralRe: CList Pin
Smith#2-Aug-05 3:32
Smith#2-Aug-05 3:32 
GeneralRe: CList Pin
Marc Soleda2-Aug-05 3:38
Marc Soleda2-Aug-05 3:38 
GeneralRe: CList Pin
Maximilien2-Aug-05 3:18
Maximilien2-Aug-05 3:18 
GeneralRe: CList Pin
Smith#2-Aug-05 3:43
Smith#2-Aug-05 3:43 
GeneralRe: CList Pin
David Crow2-Aug-05 3:51
David Crow2-Aug-05 3:51 
GeneralRe: CList Pin
BadKarma2-Aug-05 3:54
BadKarma2-Aug-05 3:54 
GeneralRe: CList Pin
Smith#2-Aug-05 5:36
Smith#2-Aug-05 5:36 
GeneralConverting FILETIME to CString Pin
BicycleTheif2-Aug-05 2:45
BicycleTheif2-Aug-05 2:45 
GeneralRe: Converting FILETIME to CString Pin
Marc Soleda2-Aug-05 3:13
Marc Soleda2-Aug-05 3:13 
GeneralCMenu Pin
dexy-2-Aug-05 2:23
dexy-2-Aug-05 2:23 
GeneralRe: CMenu Pin
dexy-2-Aug-05 2:54
dexy-2-Aug-05 2:54 
GeneralRe: CMenu Pin
BadKarma2-Aug-05 3:44
BadKarma2-Aug-05 3:44 
GeneralRe: CMenu Pin
toxcct2-Aug-05 20:53
toxcct2-Aug-05 20:53 
GeneralRe: CMenu Pin
dexy-2-Aug-05 22:23
dexy-2-Aug-05 22:23 
GeneralReading text from AfxWnd42s Window Pin
Gochha2-Aug-05 2:00
Gochha2-Aug-05 2:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.