Autor Beitrag
lblbw
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Fr 04.04.08 16:09 
Hallo,

ich habe wie in der SB schon angedeutet meinen ehemaligen Code komplett umgeschmissen und benutze nun die Komponente Bassplayer. Ich bekomme nun den Fehler, das die Eigenschaft Position nicht existiert. Hat den Fehler jemand schon mal gehabt?


Zuletzt bearbeitet von lblbw am Fr 04.04.08 16:32, insgesamt 1-mal bearbeitet
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: Fr 04.04.08 16:14 
Besitzt diese Klasse/Komponente denn diese Eigenschaft? Oder heißt die da vielleicht etwas anders?

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

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Fr 04.04.08 16:25 
Die Komponente besitzt diese Eigenschaft. Und sie heißt auch so.
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: Fr 04.04.08 16:33 
Na dann ist ja alles in Ordnung. Wenn die Eigenschaft existiert, und du korrekt auf sie zugreifst (was man ja an deinem ausführlich geposteten Quelltext sofort erkennen kann), dann ist das Problem ja gelöst. Es wäre schön, wenn du den Thread dann als "erledigt" markieren könntest. :zwinker:

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

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Fr 04.04.08 16:50 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TForm1.PlayClick(Sender: TObject);
begin
   if not BassPlayer1.PlayerReady then
   begin
      Application.MessageBox('Cannot open file (BassPlayer is not ready)',
                 'Confirm', MB_OK);
      exit;
   end;
   if OpenDialog1.Execute then
      BassPlayer1.Open(OpenDialog1.FileName);
   BassPlayer1.Play;
end;


Das ist mein gesamter Quelltext. Wie gesagt, ich habe den Quelltext komplett gelöscht und will nun neu anfangen.
bflegel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 193
Erhaltene Danke: 1

Win XP, Win 7, BS2000
D5
BeitragVerfasst: Fr 04.04.08 20:44 
Hallo,

welche Fehlermeldung bekommst Du denn? Ist es vielleicht "Undefinierter Bezeichner: ..." ?

Dann musst Du die Unit für den Bassplayer in "uses" einbinden. Das selbe Problem hatte ich auch am Anfang. Siehe auch hier:

www.delphi-forum.de/...73584&highlight=

bye
bflegel

_________________
I know all the jokes about my name
lblbw Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Fr 04.04.08 20:58 
Bei uses ist es drin. Danach hatte ich schon gleich zu Anfang geschaut.

Anbei mal beide Meldungen.
Einloggen, um Attachments anzusehen!
lblbw Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Sa 05.04.08 20:59 
Komischerweise existiert nun die Eigenschaft. Habe die Kompenente neuinstalliert.