get current directory
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
can anyone tell me how do i get the current directory in VC++ code?
-
can anyone tell me how do i get the current directory in VC++ code?
Hi. You could do something like this:
char myCurDir[512]; // Now you get your curdir calling the API function GetCurrentDirectory BOOL bret = GetCurrentDirectory(512, myCurDir);
After that line the variable myCurDir hold th complete path. Regards. Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )