Autor Beitrag
Killmag10
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 297

Suse Linux / DOS / Windows All In One ;)
D4 / D2005
BeitragVerfasst: So 28.09.03 21:10 
Hallo ich hab ne wave in ne REs datei reingepackt und will sie nun in mein programm abspielen ! aber das klapt nett ! :(

Was mach ich nur falsch ?

RE-Datei:
ausblenden Quelltext
1:
StartSound RcData Shocker.wav					



Programm:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
...

implementation

{$R *.DFM}
{$R Sounds.res}

...


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
...

procedure TForm1.Button2Click(Sender: TObject);
begin
mmSystem.PlaySound('StartSound',hInstance,SND_ASYNC or SND_NODEFAULT or SND_RESOURCE);
end;

...


mfg. Killmag10

_________________
Mega-inkompetente Computer-ruinierende Organisation spioniert ohne funktionierende Technik
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Mo 29.09.03 20:07 
mit SND_RESOURCE or SND_SYNC hatte es bei mir mal geklappt. (Allerdings hatte ich bei hinstance 0 angegeben.)
Killmag10 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 297

Suse Linux / DOS / Windows All In One ;)
D4 / D2005
BeitragVerfasst: Mo 29.09.03 21:00 
obbschtkuche hat folgendes geschrieben:
mit SND_RESOURCE or SND_SYNC hatte es bei mir mal geklappt. (Allerdings hatte ich bei hinstance 0 angegeben.)


klabt nett. und der name StartSound kommt da auch einfach rein oder muss mann da vorher noch was machen ?

_________________
Mega-inkompetente Computer-ruinierende Organisation spioniert ohne funktionierende Technik
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 30.09.03 12:55 
das ist der name der ressource.
Killmag10 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 297

Suse Linux / DOS / Windows All In One ;)
D4 / D2005
BeitragVerfasst: Di 30.09.03 17:57 
obbschtkuche hat folgendes geschrieben:
das ist der name der ressource.


he ? was meinst du jetzt ? startsound ?

_________________
Mega-inkompetente Computer-ruinierende Organisation spioniert ohne funktionierende Technik
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 30.09.03 19:33 
Achso... ich glaub man muss da nichts mehr machen.
Ansonsten, probier mal MAKEINTRESOURCE(ressourcennummer)