Article View: chile.comp.programacion
Article #2814Re: Bajar un archivo de internet con visual basic
From: gato2005_cl
Date: Wed, 21 Sep 2005 23:42
Date: Wed, 21 Sep 2005 23:42
34 lines
2201 bytes
2201 bytes
Usalo como componente y maneja los datos con Inet.Execute y Inet.getchunck RobertoCL escribi�: > "Manuel Villarroel" <someone@somewhere.com> escribi� en el mensaje > news:dgs9oo$l12$1@helcaraxe.dcc.uchile.cl... > >>Alguien sabe como se hace esto? Al intenter el siguiente codigo me aparece >>un error, >> >>Sub bajarArchivo() >> Dim bytes() As Byte >> 'aqui no puede crear el objeto >> Dim inet As New InetCtlsObjects.Inet >> Dim url As String >> url = "http://www.dcc.uchile.cl/~mavillar/frases.txt" >> bytes() = inet.OpenURL(url, icByteArray) >> 'copiar los bytes a un archivo... >>End Sub >> >>Aparece :"El componente ActiveX no puede crear el objeto" >>Al principio no tenia el archivo del activex en mi pc (msinet.ocx), >>lo descargue (a windows\system32) y lo registre con el comando >>"Regsvr32 MSINET.ocx" y aun asi me aparece este error. >>Alguna ayuda? >> > > http://support.microsoft.com/default.aspx?scid=kb;en-us;313984 > > Y ponerlo como componente? CTRL+T > > -- > RCL > >
Technical Details
Message-ID:
<dgsrh2$610$1@news1.nivel5.cl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!diablo.efnet.com!efnet.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mailReferences:
<dgs9oo$l12$1@helcaraxe.dcc.uchile.cl> <dgsq32$gpf$1@proxy.ifxnw.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,a1b176e819b8e1de X-Google-Attributes: gid1593cb,public X-Google-Language: SPANISH,CP1252 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!diablo.efnet.com!efnet.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mail From: gato2005_cl <gato2005_clSINESTO@spymac.com> Newsgroups: chile.comp.programacion Subject: Re: Bajar un archivo de internet con visual basic Date: Wed, 21 Sep 2005 19:42:16 -0400 Organization: Varios Lines: 34 Message-ID: <dgsrh2$610$1@news1.nivel5.cl> References: <dgs9oo$l12$1@helcaraxe.dcc.uchile.cl> <dgsq32$gpf$1@proxy.ifxnw.cl> NNTP-Posting-Host: pc-178-51-86-200.cm.vtr.net Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news1.nivel5.cl 1127346531 6176 200.86.51.178 (21 Sep 2005 23:48:51 GMT) X-Complaints-To: news@news1.nivel5.cl NNTP-Posting-Date: Wed, 21 Sep 2005 23:48:51 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Win98; es-ES; rv:1.7.10) Gecko/20050716 Thunderbird/1.0.6 Mnenhy/0.7.2.0 X-Accept-Language: es-es, es In-Reply-To: <dgsq32$gpf$1@proxy.ifxnw.cl>