FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
¿Validar ShellExecute con Try?
Ya se que mi pregunta será un poco tonta pero quiero que mi programa abra una pag web en el exlorador (eso funciona bien), pero quiero que saber si no lo ha conseguido abrir. He probado con:
Última edición por nlsgarcia fecha: 02-06-2015 a las 23:32:51. Razón: Formateo Delphi |
#2
|
||||
|
||||
Hola pokoexperto1.
La función ShellExecute devuelve un valor, que es mayor o igual a 32 cuando se ejecuta con éxito o, de modo contrario, representa el tipo de error. Podrías intentar algo similar a este ejemplo:
Saludos
__________________
Daniel Didriksen Guía de estilo - Uso de las etiquetas - La otra guía de estilo .... Última edición por ecfisa fecha: 03-06-2015 a las 01:38:17. |
#3
|
||||
|
||||
pokexperto1,
Cita:
Revisa este código: El código anterior en Delphi 7 sobre Windows 7 Professional x32, Levanta una excepción si la función ShellExecute devuelve un código de error, como se muestra en la siguiente imagen: Revisa esta información: Cita:
Nelson. Última edición por nlsgarcia fecha: 03-06-2015 a las 16:47:31. |
#4
|
|||
|
|||
Gracias :D
Gracias a todo al final ya esta solucionado.
Por si a alguien le interesa el codigo:
|
Herramientas | Buscar en Tema |
Desplegado | |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Shellexecute | mjjj | Varios | 2 | 11-09-2007 17:41:21 |
ShellExecute | jorodgar | Varios | 8 | 07-05-2007 13:46:15 |
ShellExecute | erfedecai | API de Windows | 4 | 26-06-2006 19:12:46 |
shellexecute. | REHome | API de Windows | 2 | 26-09-2005 11:23:25 |
shellexecute | sarga | API de Windows | 2 | 17-04-2004 12:47:26 |
|