autentication via Finger print or Face

Re: autentication via Finger print or Face

Postby HunterEC » Wed Sep 14, 2016 5:41 am

Guys:

I'm getting the following compile errors:
Code: Select all  Expand view
Harbour 3.2.0dev (r1601050904)
Copyright (c) 1999-2015, http://harbour-project.org/
Compiling '.\XHBGRFINGER.PRG'...
Lines 2013, Functions/Procedures 45
Generating C source output to 'obj\XHBGRFINGER.c'... Done.
    c:\Borland\bcc7\bin\bcc32 -c -tWM -Ic:\harbourb\Harbour320\include -oobj\XHBGRFINGER obj\XHBGRFINGER.c
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
obj\XHBGRFINGER.c:
Warning W8065 .\\XHBGRFINGER.PRG 556: Call to function 'ISBLOCK' with no prototype in function _hb_GetParamCbCopy
Warning W8065 .\\XHBGRFINGER.PRG 563: Call to function 'ISNIL' with no prototype in function _hb_GetParamCopy
Warning W8075 .\\XHBGRFINGER.PRG 801: Suspicious pointer conversion in function hb_staticGRSETLICENSEFOLDER
Warning W8075 .\\XHBGRFINGER.PRG 807: Suspicious pointer conversion in function hb_staticGRINSTALLLICENSE
Error E2227 .\\XHBGRFINGER.PRG 821: Extra parameter in call to hb_stornl in function hb_staticGRCREATECONTEXT
Warning W8075 .\\XHBGRFINGER.PRG 834: Suspicious pointer conversion in function hb_staticGRVERIFY
Warning W8075 .\\XHBGRFINGER.PRG 835: Suspicious pointer conversion in function hb_staticGRVERIFY
Error E2227 .\\XHBGRFINGER.PRG 839: Extra parameter in call to hb_stornl in function hb_staticGRVERIFY
Warning W8075 .\\XHBGRFINGER.PRG 846: Suspicious pointer conversion in function hb_staticGRIDENTIFYPREPARE
Warning W8075 .\\XHBGRFINGER.PRG 852: Suspicious pointer conversion in function hb_staticGRIDENTIFY
Error E2227 .\\XHBGRFINGER.PRG 853: Extra parameter in call to hb_stornl in function hb_staticGRIDENTIFY
Error E2227 .\\XHBGRFINGER.PRG 872: Extra parameter in call to hb_stornl in function hb_staticGRGETIDENTIFYPARAMETERS
Error E2227 .\\XHBGRFINGER.PRG 873: Extra parameter in call to hb_stornl in function hb_staticGRGETIDENTIFYPARAMETERS
Error E2227 .\\XHBGRFINGER.PRG 882: Extra parameter in call to hb_stornl in function hb_staticGRGETVERIFYPARAMETERS
Error E2227 .\\XHBGRFINGER.PRG 883: Extra parameter in call to hb_stornl in function hb_staticGRGETVERIFYPARAMETERS
Warning W8075 .\\XHBGRFINGER.PRG 911: Suspicious pointer conversion in function hb_staticGRCAPSTARTCAPTURE
Warning W8075 .\\XHBGRFINGER.PRG 931: Suspicious pointer conversion in function hb_staticGRCAPSTOPCAPTURE
Warning W8075 .\\XHBGRFINGER.PRG 932: Suspicious pointer conversion in function hb_staticGRCAPSTOPCAPTURE
Warning W8075 .\\XHBGRFINGER.PRG 957: Suspicious pointer conversion in function hb_staticGRCAPLOADIMAGEFROMFILE
Error E2227 .\\XHBGRFINGER.PRG 970: Extra parameter in call to hb_stornl in function hb_staticGRCAPRAWIMAGETOHANDLE
Warning W8075 .\\XHBGRFINGER.PRG 978: Suspicious pointer conversion in function hb_staticGRBIOMETRICDISPLAY
Error E2227 .\\XHBGRFINGER.PRG 979: Extra parameter in call to hb_stornl in function hb_staticGRBIOMETRICDISPLAY
Error E2227 .\\XHBGRFINGER.PRG 994: Extra parameter in call to hb_stornl in function hb_staticGRGETGRFINGERVERSION
Error E2227 .\\XHBGRFINGER.PRG 995: Extra parameter in call to hb_stornl in function hb_staticGRGETGRFINGERVERSION
Warning W8075 .\\XHBGRFINGER.PRG 1004: Suspicious pointer conversion in function hb_staticGRCONVERTTEMPLATE
Error E2227 .\\XHBGRFINGER.PRG 1005: Extra parameter in call to hb_storc in function hb_staticGRCONVERTTEMPLATE
Error E2227 .\\XHBGRFINGER.PRG 1006: Extra parameter in call to hb_storclen in function hb_staticGRCONVERTTEMPLATE
Error E2227 .\\XHBGRFINGER.PRG 1018: Extra parameter in call to hb_storc in function hb_staticGREXTRACTEX
Error E2227 .\\XHBGRFINGER.PRG 1019: Extra parameter in call to hb_storclen in function hb_staticGREXTRACTEX
Warning W8075 .\\XHBGRFINGER.PRG 1026: Suspicious pointer conversion in function hb_staticCGRBASE64TOBIN
Warning W8075 .\\XHBGRFINGER.PRG 1040: Suspicious pointer conversion in function hb_staticCGRBIN2BASE64
Warning W8075 .\\XHBGRFINGER.PRG 1055: Suspicious pointer conversion in function hb_staticGRISBASE64ENCODING
Error E2227 .\\XHBGRFINGER.PRG 1073: Extra parameter in call to hb_storc in function hb_staticGRENROLL
Error E2227 .\\XHBGRFINGER.PRG 1074: Extra parameter in call to hb_storclen in function hb_staticGRENROLL
Warning W8075 .\\XHBGRFINGER.PRG 1081: Suspicious pointer conversion in function hb_staticGR_SET_SENSOR_CARGO
Warning W8075 .\\XHBGRFINGER.PRG 1089: Suspicious pointer conversion in function hb_staticGR_GET_SENSOR_CARGO
*** 17 errors in Compile ***

** error 2 ** deleting .\obj\XHBGRFINGER.OBJ
 



Any clues ? Thank you very much !
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: autentication via Finger print or Face

Postby Antonio Linares » Wed Sep 14, 2016 7:15 am

Gustavo,

Please replace ISBLOCK with HB_ISBLOCK and ISNIL with HB_ISNIL
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: autentication via Finger print or Face

Postby ariston.ap » Fri Sep 16, 2016 12:40 am

This one works with Nitgen SDK, for Hamster finger readers (http://www.nitgen.com.br/produtos/18-fingkey-hamster-dx)
Must install the Driver and the SDK. I use this kind of finger reader for a long time a I never had problem with it.

Code: Select all  Expand view

cDedo := Hamster_PegaDedo()

// Save cDedo in da folder
cFname := CurDrive()+":\"+GetCurDir()+"\DIGITAL\D1.TXT"
nH := FCreate(cFname)
_nBt := FWrite(nH, cDedo)
FClose(nH)

*...*
// Gets the digital
FUNCTION Hamster_PegaDedo()
   objNBioBSP := CreateObject('NBioBSPCOM.NBioBSP')
   objDevice := objNBioBSP:Device
   objExtraction := objNBioBSP:Extraction
   objMatching := objNBioBSP:Matching
   objExtraction:WindowStyle := 0
   objDevice:Open(255)
   objExtraction:DefaultTimeout := 5000
   objExtraction:Capture()
   digital:= objExtraction:TextEncodeFIR()
   objDevice:Close(255)
RETURN( digital )

// The function bellow is an example of how to teste the digital

FUNCTION TestSDK()
   local aFiles := Array( ADir( CurDrive()+"
:\"+GetCurDir()+"\DIGITAL\D*.TXT" ) )
   local ADir   := ADir( CurDrive()+"
:\"+GetCurDir()+"\DIGITAL\D*.TXT", aFiles )
   IF cFReader != "
Fingkey Hamster - Nitgen"
      MsgAlert("
Configure a biometria no menu 'Configurações' -> 'Gerais'","Erro de configuração")
      RETURN "
"
   ENDIF

   TRY
      objNBioBSP := CreateObject('NBioBSPCOM.NBioBSP')
      objDevice := objNBioBSP:Device
      objExtraction := objNBioBSP:Extraction
      objMatching := objNBioBSP:Matching

      objExtraction:WindowStyle := 0;

      objDevice:Open(255)
      objExtraction:DefaultTimeout := SECS("
02:00:00") * 1000 // Duas horas convertidas para milliseconds
      objExtraction:Capture()
      cTempl := objExtraction:TextEncodeFIR()

      cDedo := "
"
      IF LEN(aFiles) > 0
         FOR nDedo := 1 TO LEN(aFiles)
            cTxtFile := CurDrive()+"
:\"+GetCurDir()+"\DIGITAL\"+aFiles[nDedo]
            objMatching:VerifyMatch(cTempl, MEMOREAD(cTxtFile))
            if objMatching:ErrorCode <> 0
              *msginfo("
error")
            else
               if objMatching:MatchingResult = 1
                  cDedo := aFiles[nDedo]
                  EXIT
               endif
            endif
         NEXT
      ENDIF
      cCodigo := "
0"
      IF ! EMPTY(cTempl)
         SELECT 3 // Pessoal
         PESSOAL->(DBSETORDER(1))
         nRec := SUBSTR(cDedo,5,4)
         cCodigo := "
0"
         IF ! PESSOAL->(DBSEEK(VAL(nRec)))
            PESSOAL->(DBGOTOP())
         ELSE
            cCodigo := ALLTRIM(STR(PESSOAL->CODIGO))
         ENDIF
      ELSE
         cCodigo := "
"
      ENDIF
      objDevice:Close(255)
   CATCH
       MsgAlert( "
ERRO! O leitor biométrico não está instalado em seu computador.", "Aviso")
       cCodigo := "
"
   END
RETURN( cCodigo )
[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]
FWH1206 / XHB121 / BCC582 / RESOURCE WORKSHOP / XDEVSTUDIO
Please visit: arsoft-ap.com
[~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]
User avatar
ariston.ap
 
Posts: 11
Joined: Mon Jun 29, 2015 8:16 pm
Location: Macapá - AP - Brazil

Re: autentication via Finger print or Face

Postby HunterEC » Mon Sep 19, 2016 6:51 pm

Antonio:

Thank you for your reply. Now I'm getting a linker error:
Code: Select all  Expand view
┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for Harbour 16.06 - Jun.  2016          Harbour development power  │▄
(c) FiveTech 1993-2016 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
Harbour 3.2.0dev (r1601050904)
Copyright (c) 1999-2015, http://harbour-project.org/
Compiling 'TEST.prg' and generating preprocessed output to 'TEST.ppo'...
Lines 4986, Functions/Procedures 11
Generating C source output to 'TEST.c'... Done.
TEST.prg(27) Warning W0001  Ambiguous reference 'USER'
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
TEST.c:
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_TGRFINGER' referenced from C:\FINGER\TEST.OBJ
Error: Unable to perform link
* Linking errors *
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: autentication via Finger print or Face

Postby Antonio Linares » Tue Sep 20, 2016 10:44 am

It seems as you are not linking TGRFINGER
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 45 guests