I'm trying to create a playlist for a mediaplayer I'm writing in Borland c++ builder 3.
Here's the code i've written:
void __fastcall TMainForm::PlayListDblClick(TObject *Sender)
for (int i = 0; i < PlayList->Items->Count; i++)// this where i think i'm wrong.
MediaPlayer1->FileName = PlayList->Items->Strings[i].c_str();
TrackBar1->Max = MediaPlayer1->Length;
MainForm->Caption = "Visual Player: " +
Timer1->Enabled = true;
as you can see the code will go down the list till it gets to the last entry then plays that entry.
i need it to play the item the user Dubble clicks on and not the last entry in the list. playlist is the listbox from borlands vcl.
Thanks for any help.