获取配置文件指定数据 :UINT uRet =GetPrivateProfileString(TEXT("System"), TEXT("version"), NULL, szAppPath, MAX_PATH, TEXT(".\\Update\\ServerVersion.ini")); //目录为当前程序运行目录
写配置文件:WritePrivateProfileString(TEXT("UpdateFile"), TEXT("File"), strFormat, TEXT(".\\Version.ini"));