|
-
October 21st, 1999, 07:09 AM
#1
CFileDialog: I want to select only a path, not a filename
Hey Folks
I am currently developping an application where i need to store a file in a certain directory.
The filename is determined by the application, but the path isn't.
If I use a filedialog, i need to select a file, before i can click ok.
Is it possible to only take the path of the directory without selecting a filename?
I really hope someone can help me solve my problem asap.
Thanks in Advance
-
October 21st, 1999, 07:15 AM
#2
Re: CFileDialog: I want to select only a path, not a filename
if you want to allow the user to select a folder, use the ShBrowseForfolder API
-
October 21st, 1999, 07:21 AM
#3
Re: CFileDialog: I want to select only a path, not a filename
If you are using CFileDialog and DoModal you can use GetPathName(); instead of GetFileName();
Hope this helps
Louise
-
October 21st, 1999, 07:21 AM
#4
Re: CFileDialog: I want to select only a path, not a filename
I hope that using of OFN_NOVALIDATE flag in CFileDialog constructor will solve your problem
Zorik
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|