Enrico Maria Giordano wrote:Sure, but I need a simple PRG showing the errors that I can test here.
// C:\FWH..\SAMPLES\WARTIAGA.PRG - Compila perfecto.
#include "Fivewin.ch"
FUNCTION Main()
LOCAL oDlg, oGet, oGet1
LOCAL cCad := "Testing " // pad("Testing Gets",40)
LOCAL nNum := 0
LOCAL dDat := Date()
LOCAL Inicio := 0
SET CENTURY ON
SET DATE TO BRITISH
SET EPOCH TO 1960
SET Multiple ON
SET DELETED ON
DEFINE DIALOG oDlg TITLE "TGet from " + FWDESCRIPTION
@ 1, 2 SAY "Text..:" OF oDlg UPDATE
// NO HACE SENTIDO... PARA QUE SIRVE?
@ 1, 6 GET oGet1 VAR Inicio OF oDlg SIZE 100, 10 COLOR "W/G" ;
PICTURE "99999999" UPDATE
@ 3, 7 BUTTON "&Ok" OF oDlg SIZE 30, 12 ;
ACTION WebPageSource()
@ 3, 16 BUTTON "&Cancel" SIZE 30, 12 OF oDlg ;
ACTION( oDlg:End() ) CANCEL
ACTIVATE DIALOG oDlg CENTERED
RETURN NIL
FUNCTION WebPageSource( cUrl )
LOCAL oIE, cTXT, cHTML, cMemo := ""
LOCAL cString
LOCAL cString1, cString2
LOCAL oUrl, oCli, lOk
// BANCO CENTRAL DE VENEZUELA?
DEFAULT cUrl := "www.bcv.org.ve"
BEGIN SEQUENCE
// Enrico: No acepta https aqui:
oUrl = TUrl():New( cUrl )
IF Empty( oUrl )
__QUIT()
// BREAK // NO USE ESTO
ENDIF
oCli := TIPClientHttp():New( oUrl )
IF Empty( oCli )
__QUIT()
// BREAK // NO USE ESTO
ENDIF
IF !oCli:Open( oUrl )
__QUIT()
// BREAK // NO USE ESTO
ENDIF
WHILE( .T. )
SYSREFRESH()
cString := oCli:Read()
? cString
IF Empty( cString )
EXIT
ENDIF
cMemo := cMemo + cString
ENDDO
cString := cMemo
oCli:Close()
// oUrl:Close() //??
END SEQUENCE
MemoWrit( "BCV.TXT", cMemo )
MsgInfo( cString )
MemoEdit( cString )
RETURN NIL
// fin / end
// C:\FWH..\SAMPLES\WARTIAG3.PRG
#Include "FiveWin.ch"
FUNCTION Main()
LOCAL cCnpj
cCnpj := "00000000000000"
SiteCnpjFazenda( cCnpj )
RETURN NIL
FUNCTION SiteCnpjFazenda( cCnpj )
LOCAL cUrl
/*
cUrl := [http://www.receita.fazenda.gov.br/PessoaJuridica/CNPJ/cnpjreva/Cnpjreva_Solicitacao2.asp?cnpj=] + ;
StrZero( Val( cCnpj ), 14 )
*/
cUrl := "https://www.bcv.org.ve" // falta algo????
ShellExecute(GetActiveWindow(),"open",'"'+cUrl+'"', 0)
RETURN NIL
// FIN - kapiabafwh@gmail.com
Enrico Maria Giordano wrote:Compiled: no unresolved externals, with both Harbour and xHarbour. Please try with the latest xHarbour from here:
http://xharbour.org/index.asp?page=download/windows/binaries_win
karinha wrote:Enrico, no acepta https.
wartiaga wrote:Enrico Maria Giordano wrote:Compiled: no unresolved externals, with both Harbour and xHarbour. Please try with the latest xHarbour from here:
http://xharbour.org/index.asp?page=download/windows/binaries_win
I downloaded xharbour from this address. What version of bcc and fwh did you use?
wartiaga wrote:Does it use hbzip.lib and common.lib? Thanks.
karinha wrote:Artiaga, ¿qué necesitas "sacar" de la página web del banco central de Venezuela? ¿No necesitas una clave o autorización?
- Code: Select all Expand view RUN
// C:\FWH..\SAMPLES\WARTIAG3.PRG
#Include "FiveWin.ch"
FUNCTION Main()
LOCAL cCnpj
cCnpj := "00000000000000"
SiteCnpjFazenda( cCnpj )
RETURN NIL
FUNCTION SiteCnpjFazenda( cCnpj )
LOCAL cUrl
/*
cUrl := [http://www.receita.fazenda.gov.br/PessoaJuridica/CNPJ/cnpjreva/Cnpjreva_Solicitacao2.asp?cnpj=] + ;
StrZero( Val( cCnpj ), 14 )
*/
cUrl := "https://www.bcv.org.ve" // falta algo????
ShellExecute(GetActiveWindow(),"open",'"'+cUrl+'"', 0)
RETURN NIL
// FIN - kapiabafwh@gmail.com
Regards, saludos.
Enrico Maria Giordano wrote:karinha wrote:Enrico, no acepta https.
You have to setup your compiler for SSL. Please search in this forum my instructions about that.
Return to WhatsNew / Novedades
Users browsing this forum: No registered users and 9 guests