Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to show jpg file in x64 windows
Message
 
À
18/11/2010 11:27:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01489593
Message ID:
01489629
Vues:
99
>>These work for me:
>>
>>? ShellExecute(0,"open","c:\windows\system32\mspaint.exe","D:\software\smlogo.jpg","",1)
>>? ShellExecute(0,"open","c:\windows\sysWOW64\mspaint.exe","D:\software\smlogo.jpg","",1)
>>
>
>Thank you. This works. Questions:
>
>1. How to open jpg and other files with default file type handler like clicking in file in Windows Explorer ?
>
>2. I right clicked in windows explorer in jpg file and selected
>
>Choose default program
>Photo Gallery Viewer
>
>After hat I got error message
>
>Picture printing is not available without the Desktop Experience Feature.
>
>Images are still opened with paint.
>How to open images with Photo Gallery Viewer or other windows built in viewer ?

Try:
LOCAL lcFile, loShell
lcFile = GETPICT()
loShell = CREATEOBJECT("Shell.Application")
loShell.ShellExecute(lcFile)
RELEASE loShell
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform