Malacandra
Programmer
BCB6 C++/ Win XP/
Hi,
I need to get SelectDirectory() to open at the "Desktop" or at least "My Computer" level so other drives can be selected.
I have been trying to get this sorted for ages but with no luck. Working code is :
This works fine but if I change the Code to :
I get an error in SVCHOST.EXE in CPU window,
then I Ctrl-F2 out of that, go back to my program and the dialog opens with "My Computer" selected okay.
Would like to know if there is a way of not crashing it or is this a fault in the SHBrowseForFolder API.
Thanks for Looking.....
"Time Is Precious, Waste It Wisely
Hi,
I need to get SelectDirectory() to open at the "Desktop" or at least "My Computer" level so other drives can be selected.
I have been trying to get this sorted for ages but with no luck. Working code is :
Code:
AnsiString PathName="";
if (SelectDirectory("Select Directory","C:\\",PathName))
{
ShowMessage(PathName);
}
Code:
AnsiString PathName="";
if (SelectDirectory("Select Directory","MyComputer",PathName))
{
ShowMessage(PathName);
}
then I Ctrl-F2 out of that, go back to my program and the dialog opens with "My Computer" selected okay.
Would like to know if there is a way of not crashing it or is this a fault in the SHBrowseForFolder API.
Thanks for Looking.....
"Time Is Precious, Waste It Wisely