版权声明:本文为博主原创文章,未经博主允许不得转载。 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";