call functions from DLL

call functions from DLL

Postby Marcelo Via Giglio » 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
Marcelo Via Giglio
 
Posts: 1065
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: call functions from DLL

Postby Antonio Linares » Thu Jan 30, 2020 5:19 am

Marcelo,

You have to use OLE:

viewtopic.php?p=226365#p226365
regards, saludos

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

Re: call functions from DLL

Postby Marcelo Via Giglio » Thu Jan 30, 2020 1:59 pm

Thanks Antonio,

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

[url]oZk := CreateObject("zkemkeeper.ZKEM")[/url]

oZk := CreateObject("zkemkeeper.ZKEM")

is ok, more not work
Marcelo Via Giglio
 
Posts: 1065
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: call functions from DLL

Postby Antonio Linares » Thu Jan 30, 2020 3: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 63 guests