TBApiGetCalibrationAsStyle API Call

 

Description

Get the calibration settings for the specified device.

Parameters

Device handle and a pointer to a Calibration Style structure for storage of style details.

Returns

0 = fail, 1 = OK

Notes

None.

See also

Other calibration related API calls.

 

Visual C++ Declaration/example

 

BOOL TBAPI TBApiGetCalibrationAsStyle(HTBDEVICE aDeviceHandle, _CalStyle* aStyle);

 

_CalStyle          cs;

if (!TBApiGetCalibrationAsStyle(aDeviceHandle, &cs))

            AfxMessageBox(“Cannot retrieve calibration settings”);

 

Visual Basic Declaration/example

 

Public Declare Function TBApiGetCalibrationAsStyle Lib "TBapi" Alias “_DLL_TBApiGetCalibrationAsStyle@8" (ByVal aDeviceHandle As Byte, ByVal aStyle As Long) As Long 

 

Dim cs As CalStyle       ‘ defined in TBdecls.bas

Dim addrcs As Long

addrcs = VarPtr(cs)

 

If TBApiGetCalibrationAsStyle(aDeviceHandle, addrcs) = False Then

            MsgBox "Cannot retrieve calibration settings"

End If