1、ini文件的读写
GetPrivateProfileString(); 读取ini文件的String类型指定条目,关键字的字符串。WIN API
WritePrivateProfileString();写ini文件的String类型指定条目,关键字的字符串。WIN API
GetPrivateProfileInt();读取ini文件的int类型指定条目,关键字的字符串。WIN API
WritePrivateProfileInt();写ini文件的int类型指定条目,关键字的字符串。WIN API
参数:
BOOL WritePrivateProfileString(
LPCTSTR lpAppName,
LPCTSTR lpKeyName,
LPCTSTR lpString,
LPCTSTR lpFileName
);
其中各参数的意义:
LPCTSTR lpAppName 是INI文件中的一个字段名.
LPCTSTR lpKeyName 是lpAppName下的一个键名,通俗讲就是变量名.
LPCTSTR lpString 是键值,也就是变量的值,不过必须为LPCTSTR型或CString型的.
LPCTSTR lpFileName 是完整的INI文件。
其中各参数的意义:
LPCTSTR lpAppName 是INI文件中的一个字段名.
LPCTSTR lpKeyName 是lpAppName下的一个键名,通俗讲就是变量名.
LPCTSTR lpString 是键值,也就是变量的值,不过必须为LPCTSTR型或CString型的.
LPCTSTR lpFileName 是完整的INI文件。
UINT GetPrivateProfileInt(
LPCTSTR lpAppName,