1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #if !defined(AFX_INIFILE_H__D6BE0D97_13A8_11D4_A5D2_002078B03530__INCLUDED_)
- #define AFX_INIFILE_H__D6BE0D97_13A8_11D4_A5D2_002078B03530__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif
- class CIniFile
- {
-
- private:
-
- TCHAR m_szFilePath[MAX_PATH];
-
- public:
-
-
- BOOL GetVarInt(LPCTSTR strSection,LPCTSTR strVarName,int & iValue);
-
-
- BOOL GetVarStr(LPCTSTR strSection,LPCTSTR strVarName,LPTSTR strReturnValue);
-
- BOOL GetVarStr(LPCTSTR strSection,LPCTSTR strVarName,CString & strValue);
-
-
- BOOL SetVarInt(LPCTSTR strSection,LPCTSTR strVarName,const int iValue);
-
- BOOL SetVarStr(LPCTSTR strSection,LPCTSTR strVarName,LPCTSTR strValue);
-
- void SetPath(LPCTSTR szPath);
-
- CIniFile();
-
-
- virtual ~CIniFile();
- };
- #endif
|