ReadRegister
|
|
[in] unsigned int* addr
|
Address of the register to read.
|
|
[out] unsigned int* pAddr
|
Pointer to a variable that receives the value of the register.
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
E_NOINTERFACE
|
Register does not exist
|
|
CString str;
|
unsigned int addr; int iVal
|
m_pCamera->GetFeatureRegister("Gain", &addr);
|
m_pCamera->ReadRegister(addr,&iVal)
|
str.Format(_T("Register address: %X \n Register value: %i"), addr, iVal);
|
SetDlgItemText(IDC_REGISTER_STATIC, str);
|