PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 8 nov. 2008 à 15:11
du code rouge comme çà, y'a rien qui te choque ? ^^
on est déjà le premier avril?
ok on va simplifier les choses
supprime ta form2
supprime ton module
dans la fomr1 tu mets juste :
Option Explicit
Private Const
SND_ASYNC =
&H1
'Joue le son en
arrière-plan.
Private Const
SND_FILENAME =
&H20000
'Le son provient d'un
fichier externe
Private Declare Function
PlaySound
Lib
"winmm.dll"
Alias
"PlaySoundA"
(
ByVal
lpszName
As String
,
ByVal
hModule
As Long
,
ByVal
dwFlags
As Long
)
As
Long
'
Private Sub
Form_Load()
PlaySound "C:\son.WAV", 0&, SND_FILENAME Or SND_ASYNC
End Sub
<small>
[../code.aspx?ID=39466
]
</small>
<hr size="2" width="100%" />
Prenez un instant pour répondre à [forum/sujet-SONDAGE-POP3-POUR-CS_769706.aspx ce sondage] svp
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 8 nov. 2008 à 11:56
c'est le risque quand on copie dans lire
<strike> Private</strike> Public Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA"
(ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As
Long) As Long
<strike> Private</strike> Public Const SND_ASYNC = &H1 'Joue le son en arrière-plan.
<strike> Private</strike> Public Const SND_FILENAME = &H20000 'Le son provient d'un fichier externe
<strike> Private</strike> Public Const SND_LOOP = &H8 ' Répète le son jusqu'au prochain appel de PlaySound
infos sur les portées :
http://www.vbfrance.com/doc/faq.aspx#vb_varpublic <hr size="2" width="100%" />Prenez un instant pour répondre à [forum/sujet-SONDAGE-POP3-POUR-CS_769706.aspx ce sondage] svp
Vous n’avez pas trouvé la réponse que vous recherchez ?