33 lines
882 B
C++
33 lines
882 B
C++
//---------------------------------------------------------------------------
|
|
|
|
#ifndef OperCfgFileH
|
|
#define OperCfgFileH
|
|
|
|
|
|
#include <System.Classes.hpp>
|
|
#include <Vcl.Controls.hpp>
|
|
#include <Vcl.StdCtrls.hpp>
|
|
#include <Vcl.ComCtrls.hpp>
|
|
#include <Vcl.ExtCtrls.hpp>
|
|
#include <Vcl.Graphics.hpp>
|
|
//---------------------------------------------------------------------------
|
|
class OperCfgFile
|
|
{
|
|
public:
|
|
OperCfgFile();
|
|
~OperCfgFile();
|
|
private:
|
|
String m_lpszCfgFileName;
|
|
void SetCfgFileName(const AnsiString szCfgFileName );
|
|
UINT GetExcPath(String & strExcPath);
|
|
public:
|
|
String GetCfgFileName();
|
|
|
|
UINT ReadSegKeyValue(const String strSegName,const String strKeyName,String & strRetValue);
|
|
UINT SaveSegKeyValue(const String strSegName,const String strKeyName,String strSaveValue);
|
|
|
|
//encrypting string
|
|
bool EncrytString(String & strEncryptData,bool bIsEncryptFlag);
|
|
};
|
|
#endif
|