Q: How to get the current working directory?
A:
Code:TCHAR szDirectory[MAX_PATH] = ""; if(!::GetCurrentDirectory(sizeof(szDirectory) - 1, szDirectory)) // Error -> call '::GetLastError()'
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |