Integration with DLL Delphi
Posted: Sun Mar 28, 2021 6:54 pm
Hello friends.
I need to make an integration with a Brazilian payment gateway called GerenciaNet, the easiest way and I saw that it is possible would be via DLL Delphi. I made the declaration of the DLL and its functions like this:
The problem is that the documentation for this DLL is horrible. Has anyone done this integration?
I need to make an integration with a Brazilian payment gateway called GerenciaNet, the easiest way and I saw that it is possible would be via DLL Delphi. I made the declaration of the DLL and its functions like this:
Code: Select all
nHandle := LoadLib32( "GerenciaNet.dll" )
DLL32 Function __dbk_fcall_wrapper() AS BOOL PASCAL FROM "__dbk_fcall_wrapper" LIB nHandle
DLL32 Function ConfigureProxy() AS BOOL PASCAL FROM "ConfigureProxy" LIB nHandle
DLL32 Function ConfigureService() AS BOOL PASCAL FROM "ConfigureService" LIB nHandle
DLL32 Function dbkFCallWrapperAddr() AS BOOL PASCAL FROM "dbkFCallWrapperAddr" LIB nHandle
DLL32 Function GerenciaNet() AS BOOL PASCAL FROM "GerenciaNet" LIB nHandle
DLL32 Function GerenciaNetGetInstanceData() AS BOOL PASCAL FROM "GerenciaNetGetInstanceData" LIB nHandle
DLL32 Function TMethodImplementationIntercept() AS BOOL PASCAL FROM "TMethodImplementationIntercept" LIB nHandle