Satut a tous , j'ai fait une application qui joue du son aprés certains clics...
chez moi elle fonctionne parfaitement ,mais dans le pc de mon ami ou delphi n'est pas installer le son ne marche pas ;j'ai testé le programme avec ces deux fonctions
il y'a pas un truc qui faut l'importer avec mon application ??? aide please
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 uses Mmsystem; function PlaySound(pszSound: PChar; hmod: HMODULE; fdwSound: DWORD): BOOL; stdcall;external 'winmm.dll' name 'PlaySound'; procedure TForm1.Button1Click(Sender: TObject); begin sndPlaySound('C:\nudge.wav',SND_ASYNC); end; procedure TForm1.Button2Click(Sender: TObject); begin PlaySound('C:\nudge.wav',0,SND_FILENAME); end;![]()
Partager