Page 1 of 1

Integration with DLL Delphi

Posted: Sun Mar 28, 2021 6:54 pm
by ctoas
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:

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
The problem is that the documentation for this DLL is horrible. Has anyone done this integration?

Re: Integration with DLL Delphi

Posted: Thu Apr 01, 2021 7:25 pm
by Lailton
Fala Cristiano,

O seu codigo esta certo porem esta estranho não ter parametros das funcões... teria que ver certinho os parametros e passa-lo.
Se voce tiver o PDF com as declações ou exemplos em outras linguages poste aqui que tentamos ajudar :)

Re: Integration with DLL Delphi

Posted: Thu Apr 01, 2021 9:55 pm
by ctoas
Valeu Lailton.

Segue o link da documentação

https://dev.gerencianet.com.br/docs

O que preciso é a parte de Boletos...

https://dev.gerencianet.com.br/docs/ger ... o-bancario