Probléme pour jouer un son !

Résolu
krokro6 Messages postés 66 Date d'inscription jeudi 8 avril 2004 Statut Membre Dernière intervention 28 juin 2007 - 14 août 2005 à 20:49
whikie Messages postés 99 Date d'inscription vendredi 24 juin 2005 Statut Membre Dernière intervention 17 septembre 2005 - 15 août 2005 à 09:34
re bonjour =)
dans mon programme je voudrais jouer du son jai chercher sur le site avec le moteur de recherche jen ai trouver beaucoup mais aucun ne marche ! il mette toujour sune erreur :(

voila l'erreur

galere3Dlg.obj : error LNK2001: unresolved external symbol [mailto:__imp__PlaySoundA@12 __imp__PlaySoundA@12]
Debug/galere3.exe : fatal error LNK1120: 1 unresolved externals

pourtant j'ai tout bien fait =/ merci.

3 réponses

BruNews Messages postés 21040 Date d'inscription jeudi 23 janvier 2003 Statut Modérateur Dernière intervention 21 août 2019
14 août 2005 à 21:21
mets l'#include de la lib
Winmm.lib

ciao...
BruNews, MVP VC++
3
krokro6 Messages postés 66 Date d'inscription jeudi 8 avril 2004 Statut Membre Dernière intervention 28 juin 2007
14 août 2005 à 21:59
lol trop merci ca marche impec =)
0
whikie Messages postés 99 Date d'inscription vendredi 24 juin 2005 Statut Membre Dernière intervention 17 septembre 2005
15 août 2005 à 09:34
salut
quand tu as un probleme de ce type :
[mailto:__imp__PlaySoundA@<__imp__PlaySoundA@12 <]__imp__PlaySoundA@12>
ou autre

tu tape le mot clé ici 'PlaySound' dans 'msdn library'

tu trouveras toutes les infos qu'il te faut dans la partie

Requirements


Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Mmsystem.h; include Windows.h.
Library: Use Winmm.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000/XP. Also supported by Microsoft Layer for Unicode.

Bonne chance.
0
Rejoignez-nous