Autor Beitrag
covhax
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Fr 13.11.09 23:59 
Hi! Will mit der BASS.DLL ein Stream wiedergeben, leider gibts da ein Problem, in label1.caption steht die Url die abgespielt werden soll.

ausblenden Delphi-Quelltext
1:
cthread := BeginThread(nil0, @OpenURL, PAnsiChar (label37.caption), 0, ThreadId);					


Dann gibts ein Fehler "Can't Play the Stream. Error Code: 20"

Kopiere ich die Url von label1.caption aber direkt in den Code, also so:

ausblenden Delphi-Quelltext
1:
cthread := BeginThread(nil0, @OpenURL, PAnsiChar ('http://yp.shoutcast.com/sbin/tunein-station.pls?id=1234'), 0, ThreadId);					


Gibts keine Probleme. Warum?
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 14.11.09 00:12 
Benutzt du Delphi 2009 oder neuer?

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



BeitragVerfasst: Sa 14.11.09 00:14 
Sorry. Ja benutze Delphi 2009
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 14.11.09 00:15 
Dann probier es mal so:

ausblenden Delphi-Quelltext
1:
cthread := BeginThread(nil0, @OpenURL, PAnsiChar(AnsiString(label37.caption))0, ThreadId);					

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



BeitragVerfasst: Sa 14.11.09 01:27 
Geht. Danke.