GetFileTransferProgress
Top  Previous  Next

Description

Returns the progress of the current file access operation in percent.


Syntax


[VB]
Value=objActiveGige.GetFileTransferProgress( Name )


[C/C++]
HRESULT GetFileTransferProgress(bstr Name, float* pValue );


Data Types
[VB]

Name: String
Return value
: Single


Parameters
[C/C++]

Name [in]  
String specifying the name of the file  
pValue [out, retval]  
Pointer to the value indicating the progress of the current file access operation in percent  


Return Values


S_OK  
Success  
E_NOINTERFACE        
File with the specified name does not exist in the device  
E_FAIL  
Failed  
 

Example


The following VB example demonstrates the use of a scroll control for real-time adjustment of the "GainRaw" feature.

Private Sub
 Form_Load()

ActiveGige1.Acquire=
True

HScroll1.Value = ActiveGige1.GetFeature("GainRaw")
HScroll1.Min = ActiveGige1.GetFeatureMin("GainRaw")
HScroll1.Max = ActiveGige1.GetFeatureMax("GainRaw")
End Sub


Private Sub
 HScroll1_Scroll()

ActiveGige1.SetFeature("GainRaw", HScroll1.Value)

End Sub

 

Remarks