ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION

ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION

Postby Pg_cts » Wed Aug 31, 2022 10:55 pm

Buenas noches a todos,

Estoy intentando integrar la libreria <tc-b_new_sdk.dll> de un lector biometrico marca ANVIZ.

Al ejecutar:
Code: Select all  Expand view

        hDLL := DllLoad( "tc-b_new_sdk.dll" )
        msginfo(hDLL:CChex_version())
 

este código me devuelve el siguiente error:

Error description: Error BASE/1004 Class: 'NUMERIC' has no exported method: CCHEX_VERSION
Args:
[ 1] = N 1534722048

Tambien he probado con:

Code: Select all  Expand view

           msginfo(DllCall( "tc-b_new_sdk.dll", "LONG", "CChex_version"))
 

y me devuelve .nil.

Tambien he probado con:
Code: Select all  Expand view

        Loadlibrary( "tc-b_new_sdk.dll" )
        msginfo(CChex_version())

                DLL32 function CChex_version()  AS LONG     lib "tc-b_new_sdk.dll"
 

y tambien me devuelve .nil.

¿Alguna ayuda?

Gracias
Pg_cts
 
Posts: 28
Joined: Thu Dec 07, 2017 10:26 am

Re: ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION

Postby Antonio Linares » Thu Sep 01, 2022 7:14 am

Puedes compartir la DLL ?

gracias
regards, saludos

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

Re: ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION

Postby Pg_cts » Thu Sep 01, 2022 8:10 am

https://we.tl/t-HdBey6VZHM

Este es el enlace de descarga de la libreria.

Gracias
Pg_cts
 
Posts: 28
Joined: Thu Dec 07, 2017 10:26 am

Re: ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION

Postby Antonio Linares » Thu Sep 01, 2022 12:00 pm

Asi funciona correctamente:
Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

  msginfo(CChex_version())

return nil

DLL FUNCTION CChex_Version() AS LONG LIB "tc-b_new_sdk.dll"

Observa que es muy importante que el nombre de la función esté escrito tal y como se exporta en la DLL, ya que se busca la función por su nombre exacto, respetando mayúsculas y minúsculas. Aqui me aparece un 44

Luego desde el PRG, da igual que uses mayúsculas ó no, pero en la declaración DLL FUNCTION es imprescindible
regards, saludos

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

Re: ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION

Postby Pg_cts » Thu Sep 01, 2022 12:08 pm

Muchas gracias Antonio.

El problema era ese mayusculas-minusculas.

Saludos
Pg_cts
 
Posts: 28
Joined: Thu Dec 07, 2017 10:26 am


Return to FiveWin para Harbour/xHarbour

Who is online

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