SISCO Posted July 4, 2018 Report Share Posted July 4, 2018 Bom dia a todos Estou tentado trabalhar com uma dll externa e não estou conseguindo, tentei com calldll e nada. Compilo os meus programas com FW 16.08. Se alguém tiver uma dica ficarei grato. Quote Link to comment Share on other sites More sharing options...
kapiaba Posted July 4, 2018 Report Share Posted July 4, 2018 ???? Mostre como está tentando fazer. Poste o código para leitura. Um exemplo: http://forums.fivetechsupport.com/viewtopic.php?f=3&t=29146&p=164349#p164349 Quote Link to comment Share on other sites More sharing options...
SISCO Posted July 5, 2018 Author Report Share Posted July 5, 2018 xDll := LoadLibrary("arquivo.dll") iRetorno := Autentica(cnpj,pdv,chaveAutenticacao) if iRetorno # 0 MsgAlert("Não foi possível autenticar ","Atenção") return Endif //-------------------------------------------------------------------- Function Autentica(cnpj,pdv,chaveAutenticacao) Return DllCall( xDll, 32, "Autenticar","cnpj,pdv,chaveAutenticacao") Quote Link to comment Share on other sites More sharing options...
kapiaba Posted July 5, 2018 Report Share Posted July 5, 2018 O que faz essa DLL? Não tem que fazer as Declarações de funções dela como a da DARUMA por exemplo? Quote Link to comment Share on other sites More sharing options...
sistem Posted July 5, 2018 Report Share Posted July 5, 2018 ola teria algum documento sobre a DLL? poderia dar um pista do que se trata essa dll kapiaba 1 Quote Link to comment Share on other sites More sharing options...
cnavarro Posted July 5, 2018 Report Share Posted July 5, 2018 Pruebe con DLL32 Function MyNameFunction( parameter1 AS <type1>, ... , parameterN AS <typeN> ) AS <typereturn> PASCAL FROM <namefunctionInDLL> LIB "arquivo.dll" Busca por "DLL32 Function"... en el foro Quote Link to comment Share on other sites More sharing options...
SISCO Posted July 5, 2018 Author Report Share Posted July 5, 2018 Estou tentado fazer a integração com cappta, este é o modelo em .net using System; using Cappta.Gp.Api.Com; namespace CappAPIIntegration { class Program { static void Main(string[] args) { ClienteCappta cappta = new ClienteCappta(); string cnpj = "00000000000000"; int pdv = 8; string chaveAutenticacao = "2C1CE88C6A0C4FA6BF2D519B1DB31DF4"; int resultadoAutenticacao = cappta.AutenticarPdv(cnpj, pdv, chaveAutenticacao); if (resultadoAutenticacao != 0) { Console.WriteLine("Não foi possível autenticar com o CapptaGpPlus"); return; } } } } Quote Link to comment Share on other sites More sharing options...
cnavarro Posted July 6, 2018 Report Share Posted July 6, 2018 http://forums.fivetechsupport.com/viewtopic.php?f=3&t=35791#p213239 Quote Link to comment Share on other sites More sharing options...
SISCO Posted July 6, 2018 Author Report Share Posted July 6, 2018 Obrigado por reponderem Dei uma olhada no forum http://forums.fivetechsupport.com/viewtopic.php?f=3&t=35791#p213239 , compilei no FW 16.08, não funcionou, pelo queeu li ainda está em teste e funciona no FW 18. Uma solução é adquiri do FW 18, mas vou fazer meus testes no que eu tenho e qualquer coisa posto no forum Quote Link to comment Share on other sites More sharing options...
cnavarro Posted July 7, 2018 Report Share Posted July 7, 2018 DLLs en C# serán posible utilizarlas con Fivewin sólo a partir de la version 18.05 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.