SetWriteCallback
|
![]() ![]() ![]() |
|
[in] void* context
|
Address of the context in which the callback function will operate.
|
|
[in] FeatureCallback callback
|
Address of the callback function
|
|
[in] const char* feature
|
String containing the name of the feature that has just been modified by a client application.
|
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
|
int CGigemuDlg::onFeatureWrite(const char* feature)
|
{
|
if(CString(feature)=="SizeX" || CString(feature)=="SizeY")
|
{
|
delete imgBuf;
|
m_pCamera->GetFeatureValue("SizeX",&m_SizeX);
|
m_pCamera->GetFeatureValue("SizeY",&m_SizeY);
|
imgBuf=new (m_SizeX * m_SizeY)
|
return 0;
|
}
|
}
|
....
|
m_pCamera->SetWriteCallback(this, &::onFeatureWrite);
|
....
|
}
|
|