Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 8 Jahren, 1 Monat
Letzter Beitrag:
vor 8 Jahren, 1 Monat
Beteiligte Autoren:
SuperDude.pcs.crosspost, Jeff Graham, Fabrice Harari.pcs.crosspost

Re: Windev: Biometric and Fingerprint

Startbeitrag von SuperDude.pcs.crosspost am 19.08.2009 06:27

João Ricardo wrote:
> My name is João Ricardo and I live in Brazil. Working in the company Psal, Primo Systems Applications Ltda. We use the Windev about 4 years and so far we have managed to develop our systems without major difficulties.
> Acquire the biometric reader FingKey Hamster's Nitgen to implement in our system of fingerprint identification.
> Along with the equipment received your dll's and sample programs and their sources. The sample programs were developed in Visual Basic 6 and Delphi 6. In tests with the sample programs achieved success in the use of FingKey.
> Began the development of routines to access the device using as basis the documentation and the sample programs.
> We observed the return of the methods of the dll was not expected, so post in the forum decided that question in an attempt to get some help.
> I do not know what may be happening.
> Someone has already developed something that could help me?
>
> C++ (Documentation)
>
> NBioAPI_Init() is the function that initializes the NBioBSP module. NBioAPI_Init()
> returns the Handle of the NBioBSP module used in the application.
>
> NBioAPI_HANDLE g_hBSP; // NBioBSP module Handle.
> …
> // Initialize BSP Module
> if ( NBioAPI_Init(&g_hBSP) != NBioAPIERROR_NONE )
> {
> // Init module failed. Show error message.
> }
> // Init success.
>
> Windev (my code)
>
> ret is int
>
> hwnd is int = SysWinActive()
> IF hwnd = 0 THEN hwnd = Handle()
>
> hInst is int = LoadDLL("NbioBSP.DLL")
> IF hInst = 0 THEN
> Error("Loading error")
> ELSE
> // Initialize
> ret = CallDLL32("NBioBSP.dll", "NBioAPI_Init", hwnd)
> Info("NBioAPI_Init: "+ret)
> // OpenDevice
> ret = CallDLL32("NBioBSP.dll", "NBioAPI_OpenDevice", hwnd, 1)
> Info("NBioAPI_OpenDevice: "+ret)
> FreeDLL(hInst)
> END
>
> I appreciate any help.
>


Hi,

Guess you are not a C++ programmer :) and you give very little
information..

1)

NBioAPI_HANDLE g_hBSP;

I guess NBioAPI_HANDLE is a structure. (not an integer and NOT
necessarily a window handle !!! )


2)
// Initialize BSP Module
if ( NBioAPI_Init(&g_hBSP) != NBioAPIERROR_NONE )


g_hBSP is passed by reference that's what the ampersand & stands for.

so :

IF API("NBioBSP.dll", "NBioAPI_Init", &g_hBSP) NBioAPIERROR_NONE


is the correct WINDEV translation.

hth
Björn Lietz-Spendig

Message forwarded from pcsoft.us.windev

Antworten:

Re: Windev: Biometric and Fingerprint

João Ricardo wrote:
> My name is João Ricardo and I live in Brazil. Working in the company Psal, Primo Systems Applications Ltda. We use the Windev about 4 years and so far we have managed to develop our systems without major difficulties.
> Acquire the biometric reader FingKey Hamster's Nitgen to implement in our system of fingerprint identification.
> Along with the equipment received your dll's and sample programs and their sources. The sample programs were developed in Visual Basic 6 and Delphi 6. In tests with the sample programs achieved success in the use of FingKey.
> Began the development of routines to access the device using as basis the documentation and the sample programs.
> We observed the return of the methods of the dll was not expected, so post in the forum decided that question in an attempt to get some help.
> I do not know what may be happening.
> Someone has already developed something that could help me?
>
> C++ (Documentation)
>
> NBioAPI_Init() is the function that initializes the NBioBSP module. NBioAPI_Init()
> returns the Handle of the NBioBSP module used in the application.
>
> NBioAPI_HANDLE g_hBSP; // NBioBSP module Handle.
> …
> // Initialize BSP Module
> if ( NBioAPI_Init(&g_hBSP) != NBioAPIERROR_NONE )
> {
> // Init module failed. Show error message.
> }
> // Init success.
>
> Windev (my code)
>
> ret is int
>
> hwnd is int = SysWinActive()
> IF hwnd = 0 THEN hwnd = Handle()
>
> hInst is int = LoadDLL("NbioBSP.DLL")
> IF hInst = 0 THEN
> Error("Loading error")
> ELSE
> // Initialize
> ret = CallDLL32("NBioBSP.dll", "NBioAPI_Init", hwnd)
> Info("NBioAPI_Init: "+ret)
> // OpenDevice
> ret = CallDLL32("NBioBSP.dll", "NBioAPI_OpenDevice", hwnd, 1)
> Info("NBioAPI_OpenDevice: "+ret)
> FreeDLL(hInst)
> END
>
> I appreciate any help.
>

maybe this works...

g_hBSP is int
IF API("NBioBSP.dll", "NBioAPI_Init", &g_hBSP) NBioAPIERROR_NONE THEN
Error("WTF")
ELSE
API("NBioBSP.dll", "NBioAPI_OpenDevice", g_hBSP, 1)
END

next tip.. 50 bucks :)
Björn
Message forwarded from pcsoft.us.windev

von SuperDude.pcs.crosspost - am 19.08.2009 06:28

Re: Windev: Biometric - Fingerprint

Hi João

I used the Hamster for a customer's project in webdev 2 years ago
without any major problem. At the time, we used the activeX provided in
the sdk to integrate the fingerprinting functions to a webdev clock
system. As you don't seem to be using the same part of the sdk (or the
sdk has changed since), I'm afraid I can't give you any more pointers

Hope this helps

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com


João Ricardo wrote:
> My name is João Ricardo and I live in Brazil. Working in the company Psal, Primo Systems Applications Ltda. We use the Windev about 4 years and so far we have managed to develop our systems without major difficulties.
> Acquire the biometric reader FingKey Hamster's Nitgen to implement in our system of fingerprint identification.
> Along with the equipment received your dll's and sample programs and their sources. The sample programs were developed in Visual Basic 6 and Delphi 6. In tests with the sample programs achieved success in the use of FingKey.
> Began the development of routines to access the device using as basis the documentation and the sample programs.
> We observed the return of the methods of the dll was not expected, so post in the forum decided that question in an attempt to get some help.
> I do not know what may be happening.
> Someone has already developed something that could help me?
>
> C++ (Documentation)
>
> NBioAPI_Init() is the function that initializes the NBioBSP module. NBioAPI_Init()
> returns the Handle of the NBioBSP module used in the application.
>
> NBioAPI_HANDLE g_hBSP; // NBioBSP module Handle.
> …
> // Initialize BSP Module
> if ( NBioAPI_Init(&g_hBSP) != NBioAPIERROR_NONE )
> {
> // Init module failed. Show error message.
> }
> // Init success.
>
> Windev (my code)
>
> ret is int
>
> hwnd is int = SysWinActive()
> IF hwnd = 0 THEN hwnd = Handle()
>
> hInst is int = LoadDLL("NbioBSP.DLL")
> IF hInst = 0 THEN
> Error("Loading error")
> ELSE
> // Initialize
> ret = CallDLL32("NBioBSP.dll", "NBioAPI_Init", hwnd)
> Info("NBioAPI_Init: "+ret)
> // OpenDevice
> ret = CallDLL32("NBioBSP.dll", "NBioAPI_OpenDevice", hwnd, 1)
> Info("NBioAPI_OpenDevice: "+ret)
> FreeDLL(hInst)
> END
>
> I appreciate any help.
>
Message forwarded from pcsoft.us.windev

von Fabrice Harari.pcs.crosspost - am 19.08.2009 12:31

Re: Windev: Biometric and Fingerprint

Hi João,

I am not a C++ programmer but I integrated U.are.U scanners from digitalPersona using VeriFinger SDK from NEUROtechnologija Ltd. I created an ActiveX using their Visual Basic examples. The key for us was to get an event and only through ActiveX could WebDev receive that. VeriFinger has examples in many languages for the more versatile programmers out there.

I also tried the Hampster but could not get an event back to WebDev with their software. This was all two years ago but the finger scanners are working well in the two schools that use them.

Cheers,
Jeff

von Jeff Graham - am 19.08.2009 17:25
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.