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.
Written by John Humphreys
C++ Threading and the POSIX Library
This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.
What is C++ STL?:
STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.