GetFeatureRegister
|
![]() ![]() ![]() |
[in] const char* feature
|
Name of the feature. Must be an existing feature of the integer, enumerated or boolean type.
|
|
[out] unsigned int* pAddr
|
Pointer to a variable that receives a 32-bit address of the register.
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
E_NOINTERFACE
|
Feature 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);
|