获得可执行程序EXE当前目录

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Nash_Cyk/article/details/79023683
    TCHAR Path[ MAX_PATH ] = {0};
    if ( GetModuleFileName( NULL, Path,MAX_PATH ) )
    {
        (_tcsrchr(Path,_T('\\')))[1] = 0;
    }
    CString strPath = szPath;
    CString strPath_ = strPath + L"Config.ini";

猜你喜欢

转载自blog.csdn.net/Nash_Cyk/article/details/79023683
今日推荐