Skip to main content
GameDev.net gamedev.net
🔒 Locked

MFC's CFileDialog

Started by Gorky Nov 7, 2002 at 7:12 PM 1 replies 550+ views
Original Post
Gorky
Gorky
Quick question: Anyone know how to set the working directory of the common file dialogs before they become modal?
Darrell L
Darrell L
Before calling DoModal, try setting m_ofn.lpstrInitialDir of your CFileDialog object to whatever directory string you want.
Gorky
Gorky
Thank you. Just what I was looking for.

I actually saw this but in the data volume of searches in MSDN, I overlooked that part of the structure.

Reread it a little closer. I wish MSDN''s pages were linked togeather more like they should be.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.