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

Post Reply
Pg_cts
Posts: 32
Joined: Thu Dec 07, 2017 10:26 am

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

Post by Pg_cts »

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


        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


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

y me devuelve .nil.

Tambien he probado con:

Code: Select all | Expand


        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
User avatar
Antonio Linares
Site Admin
Posts: 42511
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

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

Post by Antonio Linares »

Puedes compartir la DLL ?

gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
Pg_cts
Posts: 32
Joined: Thu Dec 07, 2017 10:26 am

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

Post by Pg_cts »

https://we.tl/t-HdBey6VZHM

Este es el enlace de descarga de la libreria.

Gracias
User avatar
Antonio Linares
Site Admin
Posts: 42511
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

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

Post by Antonio Linares »

Asi funciona correctamente:

Code: Select all | Expand

#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
Pg_cts
Posts: 32
Joined: Thu Dec 07, 2017 10:26 am

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

Post by Pg_cts »

Muchas gracias Antonio.

El problema era ese mayusculas-minusculas.

Saludos
Post Reply