Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Playing Tunes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00591291
Message ID:
00591321
Vues:
27
(I forgot to mention that they must have an .mp3)

#DEFINE SW_SHOWNORMAL 1
#DEFINE SW_SHOWMINIMIZED 2
#DEFINE SW_SHOWMAXIMIZED 3

DECLARE INTEGER GetSystemDirectory IN kernel32;
STRING @ lpBuffer, INTEGER nSize

DECLARE INTEGER ShellExecute IN shell32;
INTEGER hwnd, STRING lpOperation,;
STRING lpFile, STRING lpParameters,;
STRING lpDirectory, INTEGER nShowCmd

* opens data files with their associated applications
* Point to a valid .mp3 file of course
= ShellExecute (0, "open", "c:\mp3\test.mp3", "", "", SW_SHOWMAXIMIZED)

FUNCTION getSysDir
lpBuffer = SPACE (250)
nSizeRet = GetSystemDirectory (@lpBuffer, Len(lpBuffer))
RETURN SUBSTR (lpBuffer, 1, nSizeRet)
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform