Vishay Micro-Measurements System 7000 Programmer’s Reference Manual
Page 100 of 142
6.6 IVMM7000DataTransferStatus Interface Description
6.6.1 Properties
6.6.1.1 BytesTransferred Property (Read/Write)
Syntax:
Get: HRESULT _stdcall BytesTransferred(out retval BSTR * Value );
Set: HRESULT _stdcall BytesTransferred(in BSTR Value );
Description:
Returns the number of bytes transferred in the current transfer. When Setting the property, the
value is added to the current value, acting as an accumulator. Resetting the TotalBytes property
clears the accumulator.
Notes:
Setting the property is done internally by the ActiveX object. There is no need for the user to set
the property.
6.6.1.2 PercentComplete Property (Read/Write)
Syntax:
Get: HRESULT _stdcall PercentComplete(out retval BSTR * Value );
Set: HRESULT _stdcall PercentComplete (in BSTR Value );
Description:
Returns the percent complete for the current transfer.
Notes:
You may read the PercentComplete property to monitor the status of the file transfer.
Programming Note: There may be lag time between calling the RetrieveFile, ListFiles or
RetrieveLastDataFile method and the percent complete property being available. You may need
to insert a delay (100 mSecs or less) in your software to between calling the method and reading
the property. A value of -1 is returned when the property has not been updated. Refer to the
sample programs for an example.