Ver Mensaje Individual
  #4  
Antiguo 04-10-2005
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Reputación: 31
Lepe Va por buen camino
Cita:
Empezado por Ayuda delphi
HINSTANCE ShellExecute(

HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
¿Para qué servirá lo que he puesto en rojo?

Lo que está en azul, será interesante ponerlo, para que encuentre el
"rom.smc", ya que el directorio activo en windows puede ser distinto al
especificado del ejecutable.

Código Delphi [-]
ShellExecute(Form1.Handle,
      nil, 
      PChar('"C:\Documents and Settings\....\zsnesw.exe"',
      Pchar('"rom.smc"'),'',SW_SHOWNORMAL);

Un saludo

Última edición por Lepe fecha: 04-10-2005 a las 11:54:41.
Responder Con Cita