GetCurrentDirectory, MFC


/ Published in: C++
Save to your folder(s)

Use the WinBase API GetCurrentDirectory to get the directory into an MFC CString.


Copy this code and paste it in your HTML
  1. CString currentDir;
  2. GetCurrentDirectory( MAX_PATH, currentDir.GetBufferSetLength(MAX_PATH) );
  3. currentDir.ReleaseBuffer();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.