Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to show jpg file in x64 windows
Message
 
To
18/11/2010 11:27:02
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01489593
Message ID:
01489629
Views:
95
>>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
________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform