none
如何取运行目录 RRS feed

答案

  • TCHAR szPath[MAX_PATH] = {0};
    GetModuleFileName(szPath, _countof(szPath));
    _tcsrchr(szPath, _T('\\'))[0] = _T('\0');
    AfxMessageBox(szPath);


    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.

    2014年6月21日 14:08
    版主