读和写INI标签内容
读
DWORD WINAPI ReINI(LPCSTR key,LPCSTR data,LPSTR result)
{
char pathstr[_MAX_PATH];
memset(pathstr,0,sizeof(pathstr));
::GetAppDir(pathstr);
::strcat(pathstr,"Config.ini");
return ::GetPrivateProfileString(key,data,NULL,result,1024,pathstr);
}
写
char pathstr[_MAX_PATH];
memset(pathstr,0,sizeof(pathstr));
::GetAppDir(pathstr);
::strcat(pathstr,"Config.ini");
WritePrivateProfileString("system","TitleText",m_strText,pathstr);