Integration with DLL Delphi

Post Reply
User avatar
ctoas
Posts: 103
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil
Contact:

Integration with DLL Delphi

Post 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?
Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
User avatar
Lailton
Posts: 99
Joined: Fri Jul 20, 2012 1:49 am
Location: Brazil
Contact:

Re: Integration with DLL Delphi

Post 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 :)
Regards,
Lailton Fernando Mariano
https://www.harbour.ninja
User avatar
ctoas
Posts: 103
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil
Contact:

Re: Integration with DLL Delphi

Post 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
Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
Post Reply