Unibrain API-810 User Manual Page 63

  • Download
  • Add to my manuals
  • Print
  • Page
    / 97
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 62
63
C++ syntax
VARIANT_BOOL bEnabled;
HRESULT hr = pIFeature->get_Enabled(&bEnabled); //get
hr = pIFeature->put_Enabled(VARIANT_TRUE); //set
AutoMode property
Prototype
Boolean AutoMode
Comments
This is a read/write property that will retrieve or set whether this FireiXFeature will be setting its value
automatically or not. If set to True, the Value property cannot be set, or an error would occur.
This property is not available if HasAuto is False.
Visual Basic 6.0 syntax
Dim Auto As Boolean
Auto = Feature.AutoMode 'get
Feature.AutoMode = True 'set
C++ syntax
VARIANT_BOOL bAuto;
HRESULT hr = pIFeature->get_AutoMode(&bAuto); //get
hr = pIFeature->put_AutoMode(VARIANT_TRUE); //set
Value property
Prototype
Long Value
Comments
This is a read/write property that will retrieve or set the value of this FireiXFeature. In order to read the
value, the CanRead property must be True. In order to set the value, the HasManual property must be
True, and the AutoMode property must be False. The value being set must also reside inside the boundaries
set by the MinValue and MaxValue properties.
Visual Basic 6.0 syntax
Dim Value As Long
Value = Feature.Value 'get
Feature.Value = Feature.MaxValue 'set
C++ syntax
LONG lValue, lMaxValue;
HRESULT hr = pIFeature->get_Value(&lValue); //get
hr = pIFeature = pIFeature->get_MaxValue(&lMaxValue);
hr = pIFeature->put_Value(lMaxValue); //set
Page view 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 96 97

Comments to this Manuals

No comments