Skip to content

InstrumentIsModel

Indicates if the current instrument is the specified model.

bool InstrumentIsModel(const CString& strModel) const;

strModel

[in] Instrument model to test against.

Returns true if the current model is the specified model.

The following example demonstrates use of the InstrumentIsModel function.

CoAcme4321.cpp
HRESULT Acme4321::Configure()
{
HRESULT hr = S_OK;
// This method is NOT supported by model "Acme4322" family.
if (InstrumentIsModel(_T("Acme4222")))
return err.ModelNotSupported(GetModel());
hr = InstrPrintCommand();
return hr;
}