iniwrapper.h

来自「一个完整的网络通信开发包」· C头文件 代码 · 共 25 行

H
25
字号
#ifndef __INI_READER_H_
#define __INI_READER_H_
/*

*/
class CIniWrap
{
public:
	CIniWrap();
	CIniWrap(LPCSTR pszFile);
	~CIniWrap();
public:
	//设置INI 文件名
	void SetFile(LPCSTR pszFile);
	BOOL ReadStr(LPCSTR pszSection,LPCSTR pszKey,char* pszBuf,int iLen=400);
	BOOL ReadStr(LPCSTR pszSection,LPCSTR pszKey,CString& szBuf);
	BOOL ReadInt(LPCSTR pszSection,LPCSTR pszKey,int& iRet,int iDefault=-1);
	BOOL WriteStr(LPCSTR pszSection,LPCSTR pszKey,CString& szValue);
	BOOL WriteInt(LPCSTR pszSection,LPCSTR pszKey,int iValue);

protected:
	CString m_szIniFile;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?