Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Media Player or .avi files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01129484
Message ID:
01129486
Vues:
13
>My splash screen has a "Demo" button and when clicked I would like to launch what ever is on the workstation for playing my demo.avi file. Windows media player can do this. I guess I have two questions.
>
>1. How can you launch what ever .exe is associated with .avi files on the workstation? My preference.
>
>2. or how could I check the workstation for windows media player (wmplayer.exe? and if found launch it?)
>
>Dallas

You could try ShellExecute to run default AVI player:
DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
                                               STRING cOperation,;
                                               STRING cFileName,;
                                               STRING cParameters,;
                                               STRING cDirectory,;
                                               INTEGER nShowWindow
ShellExecute(0, 'open', full_path_to_your_demo_avi_here , '', '', 1)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform