inifileex.h
来自「一个简单的读取Ini文件的类」· C头文件 代码 · 共 40 行
H
40 行
// IniFileEx.h: interface for the CIniFileEx class.
// Written by: Crob
// Email: crob@crob.net
// You may use this class/code as you wish in your programs.
// Feel free to distribute it, and email suggested changes to me.
// Welcome to the http://crob.net...^_^
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_INIFILEEX_H__A0A16B81_62F5_4611_9224_49CC8F969B05__INCLUDED_)
#define AFX_INIFILEEX_H__A0A16B81_62F5_4611_9224_49CC8F969B05__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CIniFileEx
{
public:
BOOL ReadValue(CString Section, CString Ident, DWORD &Value, DWORD defValue);
BOOL WriteValue(CString Section, CString Ident, DWORD Value);
BOOL ReadValue(CString Section, CString Ident, CTime &Value, CTime defValue);
BOOL WriteValue(CString Section, CString Ident, CTime Value);
BOOL ReadValue(CString Section, CString Ident, int &Value, int defValue);
BOOL ReadValue(CString Section, CString Ident, CString &Value, CString defValue);
BOOL ReadValue(CString Section, CString Ident, long &Value, long defValue=0);
BOOL WriteValue(CString Section, CString Ident, long Value);
BOOL WriteValue(CString Section, CString Ident, int Value);
BOOL WriteValue(CString Section, CString Ident, CString Value);
void Create(CString sFileName);
CIniFileEx();
virtual ~CIniFileEx();
private:
BOOL fCreated;
CString m_sFileName;
};
#endif // !defined(AFX_INIFILEEX_H__A0A16B81_62F5_4611_9224_49CC8F969B05__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?