Method objects (ICommand nodes in GenICam) can be bound in exactly the same way however special care must be taken as their names contain information about the argument list of the method:
Device* pDev = getTheDevicePointerFromSomewhere();
Method triggerSoftware;
DeviceComponentLocator locator(pDev, dltSetting, "Base");
locator.bindComponent( triggerSoftware, "TriggerSoftware@i" );
if( triggerSoftware.isValid() )
{
int result = triggerSoftware.call();
if( result != DMR_NO_ERROR )
{
cout << "ERROR: " << ImpactAcquireException::getErrorCodeAsString( result ) << endl;
}
}
else
{
}