/ Published in: C++
Use the WinBase API GetCurrentDirectory to get the directory into an MFC CString.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
CString currentDir; GetCurrentDirectory( MAX_PATH, currentDir.GetBufferSetLength(MAX_PATH) ); currentDir.ReleaseBuffer();