lucasdebeltran wrote:This class did not work at all.
Using the class if you want to start with the player. Already using activex as below starts over recorded digital comparing error in the bank to read the player. Could someone please help?
#include "FiveWin.ch"
STATIC oWnd
STATIC ttptSize
STATIC ttpt
FUNCTION Main()
Local oFingerX
public x:=0
cStatus:= Space(1000)
DEFINE WINDOW oWnd TITLE "FiveWin ActiveX Support"
oFingerX = TActiveX():New( oWnd, "GrFingerX.GrFingerXCtrl")
oWnd:oClient = oFingerX
oFingerX:Do("Initialize")
oFingerX:Do("CapInitialize")
oFingerX:bOnEvent = { | event, aParams, pParams | EventInfo( event, aParams, pParams, oFingerX) }
ACTIVATE WINDOW oWnd VALID SalirHuella(oFingerX)
RETURN NIL
FUNCTION SalirHuella(oFingerX)
oFingerX:Do("CapStopCapture",sensor)
oFingerX:Do("CapFinalize")
oFingerX:Do("
Finalize")
RETURN ( .T. )
FUNCTION EventInfo( event, aParams, pParams, oFingerX )
Local cEvent
cEvent := cValToChar( event )
IF cEvent == "SensorPlug" .and. aParams[1] != "File"
public sensor:=aParams[1]
--->>>>here starta
oFingerX:Do("CapStartCapture",sensor)
ENDIF
IF cEvent == "SensorUnplug"
oFingerX:Do("CapStopCapture",sensor)
ENDIF
IF cEvent == "ImageAcquired"
xLib:= LoadLibrary("GrFinger.dll")
GrInitialize()
ttptSize = 10000
ttpt = SPACE(10000)
ret:= GrExtract( aParams[ 4], aParams[ 2], aParams[ 3], aParams[ 5], @ttpt, @ttptSize, 0 )
msginfo(ttpt, "dados")
if (x==0)
public cAntes:=ttpt
public x:=1
else
-----> Here error is always digital regardless of whatever
nIdScore:= 0
nId:= GrVerify( ttpt , cAntes, @nIdScore , 0 )
public cAntes:=ttpt
oWnd:cTitle(Time()+" "+Str(ret)+" "+Str(nId)+" "+Str(nIdScore))
endif
GrFinalize()
FreeLibrary(xLib)
ENDIF
RETURN NIL
DLL32 FUNCTION GrInitialize() AS LONG PASCAL FROM "_GrInitialize@0" LIB xLib
DLL32 FUNCTION GrFinalize() AS LONG PASCAL FROM "_GrFinalize@0" LIB xLib
DLL32 FUNCTION GrExtract( rawImage AS LONG, width AS LONG, height AS LONG, res AS LONG, ttpt AS LPSTR, @ttptSize AS LONG , context AS LONG ) AS LONG PASCAL FROM "_GrExtract@28" LIB xLib
DLL32 FUNCTION GrIdentifyPrepare( ttpt AS LPSTR, context AS LONG ) AS LONG PASCAL FROM "_GrIdentifyPrepare@8" LIB xLib
DLL32 FUNCTION GrIdentify( ttpt AS LPSTR, @Idscore AS LONG, context AS LONG ) AS LONG PASCAL FROM "_GrIdentify@12" LIB xLib
DLL32 FUNCTION GrVerify( ttpt AS LPSTR, qtpt AS LPSTR, @Idscore AS LONG, context AS LONG ) AS LONG PASCAL FROM "_GrVerify@16" LIB xLib
you know how to do this in class ??
oFingerX class: From ( "CapStartCapture" sensor)