Incluye | | | | - Página 1 - |
|  | Descargar.Inc
HTTP-Abruffunktionen para einfacheres Abfragen de Webserver-Ausgaben.
<!---->
Descargar/ In el Warenkorb4,99 € inkl. MwSt.
no Versandgebühr
/*
|
|
|
| INC: Descargar.Inc
| empfohlene Einbindung: include download.inc
| **************************
|
| Apoyo: https://XProfan.com/includes
|
| El Urheberrechte dieser Software mentira en me (IF, David Strutz).
|
|
| Salve, IF.
| 20070713
|
|____________________________________________________________________________________*/
{$cleq}
/* Descargar.Inc XPSE Democode
XPSE (XProfan's free PreCompiler) es erhältlich bajo
https://XProfan.com/xpse */
include download.inc
windowstyle ( 8 | 16 | 512 )
cls 0
color 10,0
imprimir
if len(trim$(dw.ip())) {//is.inet.available.trick
imprimir " INC-Versión: ",dw.ver()
imprimir " Ihre IP: ",dw.ip()
imprimir " Http-Abruf: ",dw.get("https://XProfan.com/hilfe/sheet/xpse/","_testout.html"),"bytes."
imprimir " Bild-Abruf: ",dw.get("https://XProfan.com/images/lv.bmp","_lv.bmp"),"bytes."
imprimir " Downloadgeschwindigkeit:~",int(dw.checkspeed()),"bytes/sec"
long hbox=createhtmlbox (hwnd,"file:///"+translate$(getdir$("@"),"\","/")+"/_testout.html",0,180,width(hwnd),(height(hwnd)-180))
loadbmp "_lv.bmp",(width(hwnd)-210),10;0
más
imprimir " Lo podría no Internetverbindung genutzt voluntad."
waitkey
end
endif
do {
waitinput
seleccionar key
caseof 2 : romper
endselect
}
destroywindow(hbox)
end

 |
 | 647 kB | 4,99 € inkl. MwSt. no Versandgebühr | | item: | DE-8 | | Bezeichnung: | Download.Inc | | Versión: | 0.1.6 | | Kurzbeschreibung: | Erweiterte HTTP-Abruffunktionen para einfacheres Abfragen de Webserver-Ausgaben. | | Hochgeladen: | 16.02.2009 | | | | Descargar | | | | 3 kB | | Hochgeladen: | 31.10.2020 | | Ladeanzahl: |  | | | Descargar |
| | | | |
| | | | | - Página 1 - |
|  | @Jacob: Posesiones Su Wunsch berücksichtigt y neue Versión hochgeladen.
Demo esta - uno kann nun el Largo dw.CallerProcAddr una ProcAddr zuweisen. |
| | | | |
| |  Michael Wodrich | | | | Programmieren, das spannendste Detektivspiel der Welt. | 01.12.2007 ▲ |
| |
| |  | @Dietmar: Usted debe el alte Unit de Deinem XManager herauswerfen y por esta INC sustituir. El INC es fehlerfreier, unanfälliger y más rápido como ellos anders arbeitet como el Unit. |
| | | | |
| |  marian | | | | | |
| |  | | | | | |
| |  marian | Yo me ahora XPSE heruntergeladen y el Pfad a xpse.exe como Interpreterpfad angegeben. si yo nun así el Beispielprogramm ausführe öffnet se una DOS-Ventana con el Meldungen, dass Runtime y Compiler gefunden fueron. Runtime y Compiler son beide de el Versión 8. Wenn Yo entonces una "C" eingebe, en a compilieren, restos el Compiler en Línea 6 posición con el Fehlermeldung: "Befehl unbekannt: VAR" Yo auch ya intenta, en el *.enh-Expediente todos var-Befehle por declarar a ersetzten. Como kam entonces el Fehlermeldung beim Compilieren: "Befehl unbekannt: SELECT"
Wer kann helfen?
Das Updatemanagement Comunidad, bringt me nichts, como el Programa no en diesem Sinne veröffentlich voluntad se. |
| | | | |
| |  | Ah, verstehe - "fehlen" el XProfan 8 todavía unos pocos otro Features.
Yo schaue (después de el Abendessen) si la no simplemente para XProfan 8 traducir lässt. |
| | | | |
| |  | Probiere veces: (ungetestet) KompilierenMarcaSeparacióndef $dw.version="0.1.6.x8.0"
var dw.CallerProcAddr&=0
proc dw.ver
return $dw.version
endproc
proc dw.ip
return dw.get("https://ip.mxii.com")
endproc
proc dw.get
parameters url$,target$
if %pCount=1
return dw.DownloadFile(url$,"",dw.CallerProcAddr&)
elseif %pCount=2
return dw.DownloadFile(url,target,dw.CallerProcAddr&)
endif
return ""
endproc
proc dw.checkinternet
var isnet&=0
var dllh&=usedll("wininet.dll")
casenot dllh& : return 0
var hinet&=external("wininet.dll","InternetOpenA",0,0,0,0,0)
if hinet&
isnet&=1
external("wininet.dll","InternetCloseHandle",hInet&)
endif
freedll dllh&
return isnet&
endproc
proc dw.checkspeed
casenot dw.checkinternet() : return 0
var __int_dwspd&=&gettickcount
dw.get("https://ip.mxii.com/speed.get")
__int_dwspd&=1000/((&gettickcount-__int_dwspd&)/150000)
return __int_dwspd&
endproc
######## INTERNAL FUNCTIONS ########
proc dw.DownloadFile
parameters url$,destinationFileName$,downloadCallerProc&
var oel&=set("ErrorLevel",-1)
var ofm&=set("FileMode",2)
var content$=""
var tofile&=if(len(destinationFileName$),1,0)
var dllh&=usedll("wininet.dll")
ifnot dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
return ""
endif
var hInet& = external("wininet.dll","InternetOpenA",0,0,0,0,0)
ifnot hInet&
freedll dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
return ""
endif
var hFile&=external("wininet.dll","InternetOpenUrlA",hInet&,addr(url$),0,0,$80000000,0)
ifnot hFile&
external("wininet.dll","InternetCloseHandle",hInet&)
freedll dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
return ""
endif
declare buf#
dim buf#,1024
if tofile&
if fileexists(destinationFileName)
var delfh&=assign(destinationFileName$)
erase delfh&
assign delfh&,""
endif
var fh&=assign(destinationFileName$)
openrw fh&
endif
case downloadCallerProc& : call(downloadCallerProc&,-1)
var bytesread&=0
var accbytesread&=0
while 1
external("wininet.dll","InternetReadFile",hFile&,buf#,1024,addr(bytesread&))
if bytesread&>0
if tofile
blockwrite fh&,buf#,0,bytesread&
accbytesread&=accbytesread&+bytesread&
else
content$=content$+char$(buf#,0,bytesread&)
endif
case downloadCallerProc& : call(downloadCallerProc&,bytesread&)
else
break
endif
wend
case downloadCallerProc& : call(downloadCallerProc&,-2)
external("wininet.dll","InternetCloseHandle",hFile&)
external("wininet.dll","InternetCloseHandle",hInet&)
dispose buf#
freedll dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
if tofile&
closerw fh&
assign fh&,""
return accbytesread&
end
volver content$
ENDPROC
|
| | | | |
| |  | Spars Usted, el Vars necesario auch todavía weg... |
| | | | |
| | | | - Página 2 - |
| |  | So - y Asignar en #99 umgestellt en lugar de dynamisch - Por favor, testen: KompilierenMarcaSeparacióndef $dw.version="0.1.6.x8.0"
declare dw.CallerProcAddr&
dw.CallerProcAddr&=0
proc dw.ver
return $dw.version
endproc
proc dw.ip
return dw.get("https://ip.mxii.com")
endproc
proc dw.get
parameters url$,target$
if %pCount=1
return dw.DownloadFile(url$,"",dw.CallerProcAddr&)
elseif %pCount=2
return dw.DownloadFile(url,target,dw.CallerProcAddr&)
endif
return ""
endproc
proc dw.checkinternet
declare isnet&
isnet&=0
declare dllh&
dllh&=usedll("wininet.dll")
casenot dllh& : return 0
declare hinet&
hinet&=external("wininet.dll","InternetOpenA",0,0,0,0,0)
if hinet&
isnet&=1
external("wininet.dll","InternetCloseHandle",hInet&)
endif
freedll dllh&
return isnet&
endproc
proc dw.checkspeed
casenot dw.checkinternet() : return 0
declare __int_dwspd&
__int_dwspd&=&gettickcount
dw.get("https://ip.mxii.com/speed.get")
__int_dwspd&=1000/((&gettickcount-__int_dwspd&)/150000)
return __int_dwspd&
endproc
######## INTERNAL FUNCTIONS ########
proc dw.DownloadFile
parameters url$,destinationFileName$,downloadCallerProc&
declare oel&,ofm&,content$,tofile&,dllh&,hInet&,hFile&,delfh&,fh&,bytesread&,accbytesread&
oel&=set("ErrorLevel",-1)
ofm&=set("FileMode",2)
content$=""
tofile&=if(len(destinationFileName$),1,0)
dllh&=usedll("wininet.dll")
ifnot dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
return ""
endif
hInet& = external("wininet.dll","InternetOpenA",0,0,0,0,0)
ifnot hInet&
freedll dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
return ""
endif
hFile&=external("wininet.dll","InternetOpenUrlA",hInet&,addr(url$),0,0,$80000000,0)
ifnot hFile&
external("wininet.dll","InternetCloseHandle",hInet&)
freedll dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
return ""
endif
declare buf#
dim buf#,1024
if tofile&
if fileexists(destinationFileName$)
assign #99,destinationFileName$
erase #99
endif
assign #99,destinationFileName$
openrw #99
endif
case downloadCallerProc& : call(downloadCallerProc&,-1)
bytesread&=0
accbytesread&=0
while 1
external("wininet.dll","InternetReadFile",hFile&,buf#,1024,addr(bytesread&))
if bytesread&>0
if tofile
blockwrite #99,buf#,0,bytesread&
accbytesread&=accbytesread&+bytesread&
else
content$=content$+char$(buf#,0,bytesread&)
endif
case downloadCallerProc& : call(downloadCallerProc&,bytesread&)
else
break
endif
wend
case downloadCallerProc& : call(downloadCallerProc&,-2)
external("wininet.dll","InternetCloseHandle",hFile&)
external("wininet.dll","InternetCloseHandle",hInet&)
dispose buf#
freedll dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
if tofile&
closerw #99
return accbytesread&
volver content$
ENDPROC
|
| | | | |
| |  Dietmar Horn | En XProfan 8.0 ir el Dateinummern todavía no a 99, pero sólo de 1 a 15. |
| | | Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V. [...]  Windows 95 bis Windows 7 Profan² 6.6 bis XProfan X2 mit XPSE Das große XProfan-Lehrbuch: [...]  | 28.05.2010 ▲ |
| |
| |  | Roland!
El Hilfedatei en el XProfan 8-Paket es una HLP!
Ahhhhhhhhhhhhhhhhhh! *kreuzbandschüttel*
@Dietmar: Posesiones en #15 umgestellt y de if tofile if tofile& gemacht: KompilierenMarcaSeparacióndef $dw.version="0.1.6.x8.0"
declare dw.CallerProcAddr&
dw.CallerProcAddr&=0
proc dw.ver
return $dw.version
endproc
proc dw.ip
return dw.get("https://ip.mxii.com")
endproc
proc dw.get
parameters url$,target$
if %pCount=1
return dw.DownloadFile(url$,"",dw.CallerProcAddr&)
elseif %pCount=2
return dw.DownloadFile(url,target,dw.CallerProcAddr&)
endif
return ""
endproc
proc dw.checkinternet
declare isnet&
isnet&=0
declare dllh&
dllh&=usedll("wininet.dll")
casenot dllh& : return 0
declare hinet&
hinet&=external("wininet.dll","InternetOpenA",0,0,0,0,0)
if hinet&
isnet&=1
external("wininet.dll","InternetCloseHandle",hInet&)
endif
freedll dllh&
return isnet&
endproc
proc dw.checkspeed
casenot dw.checkinternet() : return 0
declare __int_dwspd&
__int_dwspd&=&gettickcount
dw.get("https://ip.mxii.com/speed.get")
__int_dwspd&=1000/((&gettickcount-__int_dwspd&)/150000)
return __int_dwspd&
endproc
######## INTERNAL FUNCTIONS ########
proc dw.DownloadFile
parameters url$,destinationFileName$,downloadCallerProc&
declare oel&,ofm&,content$,tofile&,dllh&,hInet&,hFile&,delfh&,fh&,bytesread&,accbytesread&
oel&=set("ErrorLevel",-1)
ofm&=set("FileMode",2)
content$=""
tofile&=if(len(destinationFileName$),1,0)
dllh&=usedll("wininet.dll")
ifnot dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
return ""
endif
hInet& = external("wininet.dll","InternetOpenA",0,0,0,0,0)
ifnot hInet&
freedll dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
return ""
endif
hFile&=external("wininet.dll","InternetOpenUrlA",hInet&,addr(url$),0,0,$80000000,0)
ifnot hFile&
external("wininet.dll","InternetCloseHandle",hInet&)
freedll dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
return ""
endif
declare buf#
dim buf#,1024
if tofile&
if fileexists(destinationFileName)
assign #15,destinationFileName$
erase #15
endif
assign #15,destinationFileName$
openrw #15
endif
case downloadCallerProc& : call(downloadCallerProc&,-1)
bytesread&=0
accbytesread&=0
while 1
external("wininet.dll","InternetReadFile",hFile&,buf#,1024,addr(bytesread&))
if bytesread&>0
if tofile&
blockwrite #15,buf#,0,bytesread&
accbytesread&=accbytesread&+bytesread&
else
content$=content$+char$(buf#,0,bytesread&)
endif
case downloadCallerProc& : call(downloadCallerProc&,bytesread&)
else
break
endif
wend
case downloadCallerProc& : call(downloadCallerProc&,-2)
external("wininet.dll","InternetCloseHandle",hFile&)
external("wininet.dll","InternetCloseHandle",hInet&)
dispose buf#
freedll dllh&
set("FileMode",ofm&)
set("ErrorLevel",oel&)
if tofile&
closerw #15
return accbytesread&
volver content$
ENDPROC
KompilierenMarcaSeparación funktioniert así con XProfan 8 (getestet). |
| | | | |
|
RespuestaTema opciones | 29.996 Views |
ThemeninformationenDieses Thema ha 4 subscriber: |