Your Ad Here

Posted By

jimfred on 07/22/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

sailtsaogmailcom


GetCurrentDirectory, MFC


 / Published in: C++
 

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

  1. CString currentDir;
  2. GetCurrentDirectory( MAX_PATH, currentDir.GetBufferSetLength(MAX_PATH) );
  3. currentDir.ReleaseBuffer();

Report this snippet  

You need to login to post a comment.