Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows troubles
Message
From
02/05/2017 13:58:30
 
 
To
02/05/2017 11:26:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01650702
Message ID:
01650798
Views:
58
I suppose you have the same case of win10 64 bits.
snippingtool.exe is a 32 bits application and located in c:\windows\system32.it cannot run on 64 bits.
running codes i gave ,search only 64bits application and it dont find the snippingtool.exe in
c:\windows\sysWOW64 (the default system folder)
then it returns error.it must oriented toward 32 bits.hardcoded c:\windows\system32 dont work in this case.
MS introduced a virtual folder "sysnative"
with 64 bits,these codes work as follow:
RUN /n c:\windows\sysnative\SnippingTool.exe  &&works

inke(4)

DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
                                            STRING cOperation,;
                                            STRING cFileName,;
                                            STRING cParameters,;
                                            STRING cDirectory,;
                                            INTEGER nShowWindow

result = ShellExecute(0, "open", "c:\windows\sysnative\snippingtool.exe","","",1)
messagebox(result,0+32+4096,'',1000)  &&works
Previous
Reply
Map
View

Click here to load this message in the networking platform