Página 3 de 10

hbNFe dúvidas

Enviado: 23 Set 2011 10:43
por cruz_brasil
Salve gente,

Não querendo ser repetitivo, mas eu percorri o forum e não consegui entender onde consigo achar a danada da hbzebra.ch, tentei localizar na minigui, mas não achei nao... e o google me deixou na mão dessa vez...
Alguem teria essas .ch para facilitar a vida dum pobre programador ?



abraços.

hbNFe dúvidas

Enviado: 23 Set 2011 11:23
por rossine
Bom dia Fernando,

Atualizei hoje o hbnfe e ao tentar gerar o programa de teste me é retornado estes 2 erros:

Código: Selecionar todos

Error: Unresolved external '_HB_FUN_HBNFEASSINA' referenced from C:\HBNFE\.HBMK\WIN\BCC\TESTES.OBJ
Error: Unresolved external '_HB_FUN_HBNFECCE' referenced from C:\HBNFE\.HBMK\WIN\BCC\TESTES.OBJ
O que posso estar fazendo errado aqui ?

Eu gostaria de lhe agradecer por este projeto, pois hoje tenho a minha nfe trabalhando com a flexdocs, mas isto gera um custo para o cliente que não quer pagar por isto e com a sua solução, além de ser um código 100% em harbour eu não tenho que repassar nenhum custo para o cliente, então, não desanimes pois na minha opnião este é um projeto que veio para ficar, embora eu não tenha feito nenhuma colaboração mas pretendo em breve começar a migração da minha NFe para ele.

Parabéns pela iniciativa e obrigado pela ajuda,

Rossine.

hbNFe dúvidas

Enviado: 23 Set 2011 14:18
por athayde
cruz_brasil
a hbzerba.ch vem com o harbour, não sei se sua versão é muito velha, mas existe desde a 2.1 seguramente
baixe o harbour que tem os includes, mas verifique antes se a sua versao do minigui não esta muito velha

rossine
acredito voce não sincronizou completamente a hbNFe pois essas classes estao dentro do projeto e no compila.bat para harbour tb estão, de uma verificada

para informação
estou rodando em 3 clientes chique chique, para criar/validar/assinar a nf agora é instantaneo, show de bola

[]s
Fernando

hbNFe dúvidas

Enviado: 25 Set 2011 15:18
por walter formigoni
Ola compilando o exemplo ocorreu o erro abaixo

C:\hbNFE\hbnfe-code>hbmk2 -inc testes hbNfeFuncoes hbNFe hbNFeStatus hbNFeValida hbNFeConsulta hbNFeConsultaCadastro hbNFeAssina hbNFeCancela hbNFeInutiliza hbNFeRecepcaoLote hbNFeRetornoRecepcao hbNFeIniToXML hbNFeEmail hbNFeDanfe hbNFeCCe hbNFeCreator W32Ole -otesteNfe.exe -lhbwin -lhbct -lhbhpdf -llibhpdf -lhbzebra -lpng -lhbcurl -lhbcurls -llibcurl
hbmk2: Linking... testeNfe.exe
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_curl_global_init_mem' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_global_cleanup' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_formfree' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_cleanup' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_reset' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_duphandle' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_init' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_pause' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_perform' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_send' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_recv' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_formadd' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_slist_append' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_setopt' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_getinfo' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_slist_free_all' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_escape' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_unescape' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_version' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_version_info' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_strerror' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_getdate' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_escape' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_unescape' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_free' referenced from C:\MINIGUI\HARBOUR\LIB\HBCURL.LIB|core

Como faço para resolver
sds
Walter Formigoni

hbNFe dúvidas

Enviado: 26 Set 2011 08:58
por athayde
quem não tem o CURL deve compilar junto o hbNFeSemCurl.prg
ou compilar o harbour com a hbcurl

[]s
Fernando

hbNFe dúvidas

Enviado: 26 Set 2011 13:36
por cruz_brasil
Muito obrigado athayde, ja consegui compilar, e ja estou passando as rotinas do ACBR para o hbnfe. show de bola o projeto.

hbNFe dúvidas

Enviado: 26 Set 2011 16:32
por walter formigoni
Ola Athaide, eu compilei usando as libs do curl do harbour hbcurl.lib, e hbcurls.lib, e criei a libcurl.lib usando o comando implib com a libcurl.dll, o meu certificado eh do tipo A1(arquivo pfx).mas na compilação ocorreram os erros mencionados antes,compilando com o compila_s_curl.bat nao seleciona o certificado.
sds
Walter Formigoni

hbNFe dúvidas

Enviado: 26 Set 2011 21:18
por athayde
se deu o erro é falta das libs ou ch, vc usa harbour com BCC? pq o implib é só para bcc
uso mingw e por falar nisso o install do harbour ja importa as dlls necessarias basta colocat o SET HB_BUILD_IMPLIB=yes
tenta acertar compilando um exemplo da hbcurl primeiro, pq se der certo com o exemplo vai dar certo na hbnfe

[]s
Fernando

hbNFe dúvidas

Enviado: 29 Set 2011 17:51
por rossine
Olá Ferando,

Eu não tenho a libcurl.dll ou a libcurl.lib e no google tem um monte da libcurl.dll, de onde baixo ela ?

Obrigado,

Rossine.

hbNFe dúvidas

Enviado: 29 Set 2011 17:58
por rossine
Olá Ferando,

Eu baixei a libcurl.dll deste link http://pt.softpicks.net/dll/libcurl-dll-18548.html e gerei a libcurl.lib mas quando compilo ocorre estes erros:

c:\hbnfe>implib -a libcurl.lib libcurl.dll

Borland Implib Version 3.0.22 Copyright (c) 1991, 2000 Inprise Corporation

c:\hbnfe>hbmk2 -inc testes hbNfeFuncoes hbNFe hbNFeStatus hbNFeValida hbNFeConsulta hbNFeConsultaCad
astro hbNFeAssina hbNFeCancela hbNFeInutiliza hbNFeRecepcaoLote hbNFeRetornoRecepcao hbNFeIniToXML h
bNFeEmail hbNFeDanfe hbNFeCCe hbNFeCreator W32Ole -otesteNfe.exe -lhbwin -lhbct -lhbhpdf -llibhpdf -
lhbzebra -lpng -lhbcurl -lhbcurls -llibcurl
hbmk2: Processando opções do ambiente: -compiler=bcc
hbmk2: Linkando... testeNfe.exe
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_curl_easy_pause' referenced from C:\HRB_BCC\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_send' referenced from C:\HRB_BCC\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_recv' referenced from C:\HRB_BCC\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_escape' referenced from C:\HRB_BCC\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_unescape' referenced from C:\HRB_BCC\LIB\HBCURL.LIB|core
hbmk2: Erro: Executando linkeditor. 2
ilink32.exe @C:\TMP\a1v6t0.lnk

Estou usando a ultima release do harbour.

Obrigado,

Rossine

hbNFe dúvidas

Enviado: 29 Set 2011 23:24
por athayde
Rossine
da uma olhadinha nos includes veja se esta tudo certinho
sobre o implib deixe que o harbour faça os imports automaticamente
qq coisa da um toque ou me add no msn que posso entrar e ver para ti remotamente

[]s
Fernando

hbNFe dúvidas

Enviado: 30 Set 2011 00:28
por walter formigoni
Ola, Athaide, consegui compilar o exemplo com a dica do amigo Rossini para gerar a lib libcurl com o implib eu não usei o switch -a

implib -a libcurl.lib libcurl.dll

agora vou continuar nos testes

sds
Walter Formigoni

hbNFe dúvidas

Enviado: 30 Set 2011 08:42
por athayde
Se deu certo maravilha, quando tiverem tempo usem o harbour com mingw, é mais rapido alem de ser o oficial para harbour

[]s
Fernando

hbNFe dúvidas

Enviado: 30 Set 2011 16:22
por rossine
Boa tarde pessoal,

Eu vi no diretório do svn da hbnfe que tinha a libcurl.dll aí eu apaguei a minha e mandei atualizar o svn e agora está gerando o testenfe.exe 100%

Acrescentei no compila.bat a linha para gerar a libcurl.lib com o BCC

Código: Selecionar todos

implib -a libcurl.lib libcurl.dll

hbmk2 -inc testes hbNfeFuncoes hbNFe hbNFeStatus hbNFeValida hbNFeConsulta hbNFeConsultaCadastro hbNFeAssina hbNFeCancela hbNFeInutiliza hbNFeRecepcaoLote hbNFeRetornoRecepcao hbNFeIniToXML hbNFeEmail hbNFeDanfe hbNFeCCe hbNFeCreator W32Ole -otesteNfe.exe -lhbwin -lhbct -lhbhpdf -llibhpdf -lhbzebra -lpng -lhbcurl -lhbcurls -llibcurl

Obrigado,

Rossine.

hbNFe dúvidas

Enviado: 13 Out 2011 10:35
por HASA
:{

Bom dia,

Fernando, tem alguma previsão de sair uns demos em Minigui ?

Ou ainda a atualização daquela ajuda ?

:))