ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: Probleme avec ShellExecute et fichier .jpg   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

ven. 22 juin 2012, 12h40

P@trick
France France

atoutfox.public.association

Re: Probleme avec ShellExecute et fichier .jpg

Function Ouvrir_Document(lsLeDocument) && retour >32 si ok
  Declare Integer ShellExecute In shell32.Dll ;
    Integer hndWin, ;
    STRING cAction, ;
    STRING cFileName, ;
    STRING cParams, ;
    STRING cDir, ;
    INTEGER nShowWin  && 3=SW_SHOWMAXIMIZED
  IF FILE(m.lsLeDocument)
    return ShellExecute(0, "open", "mspaint.exe",m.lsLeDocument, GETENV("WINDIR")+"\system32", 3)
  ELSE
    =Messagebox("Le document : "+m.lsLeDocument+" n'a pas été trouvé.",0+48)
    RETURN 2 && "The specified file was not found.
  endif
ENDFUNC


Fonctionne aussi :
un lien sur ShellExecute : http://www.ml-consult.co.uk/foxst-26.htm



Permalink : http://www.atoutfox.org/nntp.asp?ID=0000009292
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3