I am using CFileDialog class in my application to browse a file. when i click on browse always by default application is opening desktop folder. I have one default path how to open that path instead of desktop.
Yep it's been a long time. The main reason is that I've been assigned to do Java-mumbo-jumbo and Eclipse plugins.
Not really my cup of tea.
Besides I've been busy (and still am...) trying to get my spare time to fit into the 24 hours given for each day.
How are things at your end? Busy? Nice things to work with?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
You should set the lpstrInitialDir member of the CFileDialog's m_ofn struct (see [^] and [^]).
Please read carefully the documentation: file dialog behaviour is OS-dependant (for instance, Windows 7 behaves distinctively with respect the initial directory).
Wow! Damned *fast* Roger!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
You are hoping wrongly. Noone will make your work for you, if you don't pay for it, and even then, probably noone will do it either.
Maybe you don't find any useful code for you, but there is quite a lot results[^] for the theory. Start reading and coding your own, and when you have concrete questions, then try it again. You'll probably get more satisfactory answers than now.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.