[VC++]配置文件读取
摘要: 1.读取VALUE为字符串DWORD dwRet = 0;GetCurrentDirectory(MAX_PATH,currentPath); wsprintf(currentPath,_T("%s%s"),currentPath,iniFile); dwRet = GetPrivateProfileString(_T("SECTION"),_T({%" ...
1.读取VALUE为字符串 DWORD dwRet = 0; GetCurrentDirectory(MAX_PATH,currentPath); 2.读取VALUE为整形 VALUE = http://www.cnblogs.com/sanquanfeng/archive/2012/01/12/GetPrivateProfileInt(_T("SECTION"),_T("KEY"),NULL,currentPath);
Always go with the choice that scares you the most, because that's the one that is going to require the most from you!
|