Hey again :p

I use OpenFileDialog to open files.
When i open file then how i can get that length video.(i open video files)

What type of videos (mp4, flv, etc) are they? You're probably going to need to use a Windows Media Player control http://msdn.microsoft.com/en-us/library/dd564582(VS.85).aspx or another API appropriate for your video type.

axWindowsMediaPlayer1->URL = openFileDialog->FileName;
						axWindowsMediaPlayer1->Ctlcontrols->play();
						textBox4->Text  = axWindowsMediaPlayer1->currentMedia->durationString;
						axWindowsMediaPlayer1->Ctlcontrols->stop();

no work.i havent any more idea to do that

What value does the durationString have?

What value does the durationString have?

00:00