CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    May 2000
    KY, USA

    Windows SDK Application: How to get the current working directory?

    Q: How to get the current working directory?


    TCHAR szDirectory[MAX_PATH] = "";
    if(!::GetCurrentDirectory(sizeof(szDirectory) - 1, szDirectory))
      // Error -> call '::GetLastError()'
    Last edited by Andreas Masur; July 24th, 2005 at 04:52 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.