Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/08/2007, 13:27
thisisalexis
 
Fecha de Ingreso: enero-2006
Ubicación: Maracay, Edo. Aragua
Mensajes: 206
Antigüedad: 18 años, 3 meses
Puntos: 0
Re: Llamar URL desde VB 6.0

Ya conseguí algo:

Código:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
    (ByVal hWnd As Long, ByVal lpOperation As String, _
    ByVal lpFile As String, ByVal lpParameters As String, _
    ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    
    
Private Sub Command1_Click()

'Shell ("start http://localhost/script.php"), vbHide

'Para llamar a una pagina web:

Call ShellExecute(hWnd, "open", "http://localhost/buhoweb/xml/sincronizar.php", _
    vbNullString, vbNullString, _
    SW_SHOWNORMAL)

End Sub
Lo único malo es que abre el navegador, y lo ideal es que sea algo invisible para el usuario.

¿Sabe alguien cómo obtener un resultado similar sin que se abra el browser?