📄 inifileex.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -