Display My Computer folder in a CFileDialog
-
How can I display My Computer folder in a CFileDialog? I tried with SHGetSpecialFolderPath , but the path is empty, i believe because Ny Computer is a vitual folder, not a system one or a real one.Thank you.
you can set a default directory if your CFileDialog opens. look into the ONF structure or something. Don't know if it will work with Virtual Folders though. Good luck. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
-
How can I display My Computer folder in a CFileDialog? I tried with SHGetSpecialFolderPath , but the path is empty, i believe because Ny Computer is a vitual folder, not a system one or a real one.Thank you.
Only some CSIDLs are supported with
SHGetFolderPath()
, andCSIDL_DRIVES
is not one of them. You can, however, useCSIDL_DRIVES
in conjunction withSHBrowseForFolder()
.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen