GetDirectory?
-
Hi I wrote a program with vc6 which when clicked on a file; the path of it returns to output, So I want to do this to return the directory of file, Does anyone know how can I do that and in which class I could return directory? Please mail me the answer, My mail is: mhghaeminia@yahoo.com Thanks
-
Hi I wrote a program with vc6 which when clicked on a file; the path of it returns to output, So I want to do this to return the directory of file, Does anyone know how can I do that and in which class I could return directory? Please mail me the answer, My mail is: mhghaeminia@yahoo.com Thanks
Member 4227826 wrote:
My mail is:
Nice to know. Mr.Spammer :-D
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
[My articles] -
Hi I wrote a program with vc6 which when clicked on a file; the path of it returns to output, So I want to do this to return the directory of file, Does anyone know how can I do that and in which class I could return directory? Please mail me the answer, My mail is: mhghaeminia@yahoo.com Thanks
Member 4227826 wrote:
So I want to do this to return the directory of file, Does anyone know how can I do that...
Use
PathRemoveFileSpec()
."Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
-
Hi I wrote a program with vc6 which when clicked on a file; the path of it returns to output, So I want to do this to return the directory of file, Does anyone know how can I do that and in which class I could return directory? Please mail me the answer, My mail is: mhghaeminia@yahoo.com Thanks
Try
char szCurrentDir[MAX_PATH];
::GetCurrentDirectory(MAX_PATH,szCurrentDir);//returns current directory