FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION
Posts: 32
Joined: Thu Dec 07, 2017 10:26 AM
ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION
Posted: 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 (fw): Select all Collapse
聽 聽 聽 聽 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 (fw): Select all Collapse
聽 聽 聽 聽 聽 聽msginfo(DllCall( "tc-b_new_sdk.dll", "LONG", "CChex_version"))

y me devuelve .nil.

Tambien he probado con:
Code (fw): Select all Collapse
聽 聽 聽 聽 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION
Posted: Thu Sep 01, 2022 07:14 AM

Puedes compartir la DLL ?

gracias

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 32
Joined: Thu Dec 07, 2017 10:26 AM
Re: ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION
Posted: Thu Sep 01, 2022 08:10 AM
https://we.tl/t-HdBey6VZHM

Este es el enlace de descarga de la libreria.

Gracias
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION
Posted: Thu Sep 01, 2022 12:00 PM
Asi funciona correctamente:
Code (fw): Select all Collapse
#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
Posts: 32
Joined: Thu Dec 07, 2017 10:26 AM
Re: ERROR Class: 'NUMERIC' has no exported method: CCHEX_VERSION
Posted: Thu Sep 01, 2022 12:08 PM

Muchas gracias Antonio.

El problema era ese mayusculas-minusculas.

Saludos

Continue the discussion