Autor Beitrag
SMARTY1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Sa 08.12.07 18:07 
Hallo
Ich möchte eine Musikdatei, die sich nach Ankreuzen in der Checkbox und dann mit Klick auf einen Button mit dem Befehl SndPlaySound(('Datei'),SND_ASYNC) abspielt, nicht von Delphi abspielen lassen sondern in einem anderen Programm wie z.B. VLC oder MediaPlayer!
Geht das mit ShellExecute? oder brauch ich einen anderen Befehl?
mfG
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Sa 08.12.07 18:12 
Nö, das sollte mit ShellExecute ganz hervorragend klappen. :D

_________________
We are, we were and will not be.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Sa 08.12.07 18:15 
Einfach die abzuspielende Datei als Parameter übergeben, dass sollte i.d.R. funktionieren

Gruß
alias5000

_________________
Programmers never die, they just GOSUB without RETURN
Blawen
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 616
Erhaltene Danke: 33

Win XP, Vista, 7
Delphi 5 Prof., BDS 2006 Prof. RAD Studio XE
BeitragVerfasst: Sa 08.12.07 18:19 
user profile iconGausi hat folgendes geschrieben:
Nö, das sollte mit ShellExecute ganz hervorragend klappen. :D
Schau Dir doch auch mal den aktuellen Tread an: www.delphi-forum.de/viewtopic.php?t=78900

Es werden zwar auch andere Aspekte behandelt, aber dies macht ja auch nichts ;-)

_________________
Es kompilert, wir können ausliefern.
Und es kompiliert wieder - das Update ist fertig - bitte 100 Euro ;-)
SMARTY1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Sa 08.12.07 19:47 
Ok wunderbar, es funktionniert! Aber ein Problem habe ich damit. Es öffnet sich die Programmoberfläche nicht, sondern nur der Prozess im Taskmanager!
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Sa 08.12.07 19:50 
Hast du als letzten Parameter ein SW_ShowNormal mit drin?

_________________
We are, we were and will not be.
SMARTY1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Sa 08.12.07 20:13 
Nein da hatte ich Hide! Ok vielen Dank!