|    
			
				30/10/2005, 19:59
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: octubre-2005 
						Mensajes: 6
					 Antigüedad: 20 años Puntos: 0 |  | 
  |  Aps! Error de compilacion
 Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
 Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean
 Dim lngRetVal As Long
 lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
 If lngRetVal = 0 Then DownloadFile = True
 End Function
 
 Private Sub Command1_Click()
 DownloadFile "http://www.xxx.com/mapa.jpg", "c:\Imagen.jpg"
 Image1 = LoadPicture("C:\imagen.jpg")
 End Sub
 
 Private Sub Form_Click()
 Unload Me
 End Sub
 
 
 
 Private Sub Timer1_Timer()
 Image1.Visible = Not (Image1.Visible)
 Image1.Image1 = LoadImage1("c:\imagen.jpg")
 End Sub
 
 
 
 Error " No se ha definido Sub o Function"
 
 
 Entonces solo me falta saber el porque de ese error y automatizar la descarga de la imagen!
     |