41 lines
822 B
C++
41 lines
822 B
C++
|
// Config.cpp: implementation of the CConfig class.
|
||
|
//
|
||
|
//////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#include "stdafx.h"
|
||
|
#include "Config.h"
|
||
|
|
||
|
#ifdef _DEBUG
|
||
|
#undef THIS_FILE
|
||
|
static char THIS_FILE[]=__FILE__;
|
||
|
#define new DEBUG_NEW
|
||
|
#endif
|
||
|
|
||
|
//////////////////////////////////////////////////////////////////////
|
||
|
// Construction/Destruction
|
||
|
//////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
CConfig::CConfig()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
CConfig::~CConfig()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
void CConfig::GetTextInfo(CString strKeyName, CString &strText)
|
||
|
{
|
||
|
char cParam[256];
|
||
|
::GetPrivateProfileString("TextInfo", strKeyName, "", cParam, 255, INI_FILE_NAME);
|
||
|
strText = cParam;
|
||
|
}
|
||
|
|
||
|
void CConfig::LoadCfg()
|
||
|
{
|
||
|
UINT iParam[30] = {0};
|
||
|
iParam[0] = ::GetPrivateProfileInt("ColorCorrection", "FRExposure ", 340, INI_FILE_NAME);
|
||
|
|
||
|
}
|
||
|
|