Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oleobject for u-are-u biometric sensor

Status
Not open for further replies.

baskom

Programmer
Sep 18, 2011
1
ID
Hi all,

I've got an activex from digital persona (u-are-u) sensor, it is running
well with VB (sample), I want to use the ocx in PB 11.5. I'm not understand
how to deal with the ole object event, can someone help me ....
in sample vb they just code :

Dim Templates(0 To 10) As Object
Private Sub DPFPEnrollmentControl1_OnEnroll(ByVal Mask As Long, ByVal Templ As Object, ByVal Stat As Object)
If MainForm.Failure.Value = True Then
' Emulate failure of enrollment operation.
Stat.Status = EventHandlerStatusFailure
Else
' Enrollment succeeded, so store the template.
Set Templates(Mask) = Templ
End If
End Sub

in PB I use object browser to look what the event do , it says :
HRESULT OLECustomControl.OnEnroll(long lFingerMask, OleObject pTemplate,OleObject pStatus)

I create a Standard Visual object Select olecontrol in the list and click OK and Go to Insert Control tab Find the control in the list and select it then declare it ...

n_fp my_templates[10]

How to deal with the array (Dim Templates(0 To 10) As Object) and the one
with only one which is not an array (Stat.Status = EventHandlerStatusFailure) , do I need a second declaration of the object?

What is 'EventHandlerStatusFailure' ? Is it from the ole or this is a vb
event?

TIA
ebaskom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top