FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour call functions from DLL
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
call functions from DLL
Posted: Thu Jan 30, 2020 12:25 AM

Hello,

I need to access to a DLL, but the functions calls it is not working, the LIB import using implib.exe not work too, but with a DLL inspector, the functions are showing with this structure:

Function Name Address Relative Address Ordinal Filename Full Path Type

IZKEM::CardNumber 83 (0x53) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Property
IZKEM::ClearAdministrators 3 (0x3) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Method
IZKEM::ClearData 135 (0x87) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Method
IZKEM::ClearDataEx 252 (0xfc) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Method
IZKEM::ClearGLog 36 (0x24) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Method
IZKEM::ClearKeeperData 30 (0x1e) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Method
IZKEM::ClearLCD 96 (0x60) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Method
IZKEM::ClearPhotoByTime 250 (0xfa) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Method
IZKEM::ClearSLog 109 (0x6d) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Method
IZKEM::ClearSMS 115 (0x73) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Method
IZKEM::ClearUserSMS 122 (0x7a) zkemkeeper.dll D:\b\biometricos\zkemkeeper.dll COM Method

All see like a objects not functions, do you know how can I get access to this functions or methods from FW + xHh

Saludos

Marcelo Vía

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: call functions from DLL
Posted: Thu Jan 30, 2020 05:19 AM

Marcelo,

You have to use OLE:

viewtopic.php?p=226365#p226365

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: call functions from DLL
Posted: Thu Jan 30, 2020 01:59 PM
Thanks Antonio,

I can get connection with the OLE component, but now I don't get access to the objects and methods

oZk := CreateObject("zkemkeeper.ZKEM")

oZk := CreateObject("zkemkeeper.ZKEM")

is ok, more not work
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: call functions from DLL
Posted: Thu Jan 30, 2020 03:27 PM
Marcelo,

Try with this great FWH utility :-)

https://github.com/FiveTechSoft/FWH_tools/blob/master/olebrowser.zip

Full source code included
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion