Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows troubles
Message
De
02/05/2017 13:58:30
 
 
À
02/05/2017 11:26:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01650702
Message ID:
01650798
Vues:
57
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform