Click or drag to resize

InstrumentIsModel

Indicates if the current instrument is the specified model.

bool InstrumentIsModel(const CString& strModel) const;
Parameters
strModel

[in] Instrument model to test against.

Return Value

Returns true if the current model is the specified model.

Example

The following example demonstrates use of the InstrumentIsModel function.

C++
// 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;
}
See Also

Download a complete CHM version of this documentation here.