Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFileDialogs and changing directories

Status
Not open for further replies.

grindstonegirl

Technical User
Jun 12, 2003
29
US
Hi
I have written a program and then built a gui on top of it. everything works fine except the intial program creates some files in the current directory you are working in. However, with the gui the directory's get changed with the cfiledialog. Is there anyway to keep track of what the directory defaults to when the program opens up? I dont' want to change where it's set, because it should be wherever the user puts the .exe, but i just want to find out where it starts. thanks
 
I am not sure, but as far as I know when the program starts first parameter in parameterlist of the main procedure

void main(int paramcount, char *param[])

is the whole string to the exe like
"c:\program\thisexe.exe"
this string you could seperate into path, name and typ

I really hope that helps..


Greetings Andreas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top