향수 님이 쓰신 글 :
: 예를 들어
:
: 레지스트리 특정 위치에 문자열값을 등록 하였다고 하면 .
:
: 문자열 등록한 날짜를 가져올수 있나요??
:
: TRegistry *reg = new TRegistry;
: reg->ReadDate() ;
:
: 등 여러개를 해봐도 안되는데.. 가능한가요..?
:
: 가능하다면 힌트좀 부탁드립니다.
TRegistry *pReg = new TRegistry();
pReg->RootKey = HKEY_LOCAL_MACHINE;
try {
if ( pReg->KeyExists("\\YourCompany\\Product") ) {
pReg->OpenKey("\\YourCompany\\Product", false);
xxxx= pReg->ReadString("xxxxx");
xxxx= pReg->ReadString("xxxxx");
xxxx= pReg->ReadString("xxxx");
xxxx= pReg->ReadString("xxxx");
xxxx= pReg->ReadString("xxxx");
xxxx= pReg->ReadInteger("Port");
bResult = true;
} else {
bResult = false;
}
} catch ( Exception &e ) {
#ifdef _DEBUG
ShowMessage(e.Message);
#endif
bResult = false;
}
pReg->CloseKey();
delete pReg;
힌트가 되기를..
Registry에 쓰는 로직도 위와 비슷합니다.
그럼.
|