Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: basic string question Pin
Chris Losinger3-Jul-06 4:02
professionalChris Losinger3-Jul-06 4:02 
AnswerRe: basic string question Pin
Zac Howland3-Jul-06 6:37
Zac Howland3-Jul-06 6:37 
NewsRe: basic string question Pin
Roland Pibinger3-Jul-06 9:01
Roland Pibinger3-Jul-06 9:01 
GeneralRe: basic string question Pin
Zac Howland3-Jul-06 9:12
Zac Howland3-Jul-06 9:12 
Questioncreating file, path name more than 300 characters Pin
Lokesh Murthy3-Jul-06 3:44
Lokesh Murthy3-Jul-06 3:44 
Questionmove data to sql db Pin
PhilWalker3-Jul-06 3:27
PhilWalker3-Jul-06 3:27 
QuestionTOOLTIP Pin
ashish dogra3-Jul-06 3:24
ashish dogra3-Jul-06 3:24 
AnswerRe: TOOLTIP Pin
Chris Losinger3-Jul-06 3:46
professionalChris Losinger3-Jul-06 3:46 
Questionhow to create a Splitter Window Pin
Uday Janaswamy3-Jul-06 3:13
Uday Janaswamy3-Jul-06 3:13 
AnswerRe: how to create a Splitter Window Pin
Tara143-Jul-06 3:46
Tara143-Jul-06 3:46 
QuestionProcessing 'X' buttons message Pin
Tara143-Jul-06 3:12
Tara143-Jul-06 3:12 
AnswerRe: Processing 'X' buttons message Pin
Don Box3-Jul-06 3:33
Don Box3-Jul-06 3:33 
GeneralRe: Processing 'X' buttons message Pin
Tara143-Jul-06 3:35
Tara143-Jul-06 3:35 
AnswerRe: Processing 'X' buttons message Pin
Hamid_RT3-Jul-06 3:39
Hamid_RT3-Jul-06 3:39 
GeneralRe: Processing 'X' buttons message Pin
Tara143-Jul-06 3:43
Tara143-Jul-06 3:43 
GeneralRe: Processing 'X' buttons message Pin
Hamid_RT3-Jul-06 3:53
Hamid_RT3-Jul-06 3:53 
GeneralRe: Processing 'X' buttons message Pin
Tara143-Jul-06 5:01
Tara143-Jul-06 5:01 
QuestionProblem with CreateProcess Pin
rajeevktripathi3-Jul-06 2:13
rajeevktripathi3-Jul-06 2:13 
AnswerRe: Problem with CreateProcess Pin
Garth J Lancaster3-Jul-06 2:23
professionalGarth J Lancaster3-Jul-06 2:23 
AnswerRe: Problem with CreateProcess Pin
Viorel.3-Jul-06 2:30
Viorel.3-Jul-06 2:30 
AnswerRe: Problem with CreateProcess Pin
Viorel.3-Jul-06 2:47
Viorel.3-Jul-06 2:47 
AnswerRe: Problem with CreateProcess Pin
valikac3-Jul-06 6:44
valikac3-Jul-06 6:44 
Questionabout timer Pin
happy_ram3-Jul-06 1:53
happy_ram3-Jul-06 1:53 
AnswerRe: about timer Pin
Maximilien3-Jul-06 1:57
Maximilien3-Jul-06 1:57 
GeneralRe: about timer Pin
happy_ram3-Jul-06 2:00
happy_ram3-Jul-06 2:00 
yah
void CMPEGPlayerDlg::OnPlay() 
{

	// TODO: Add your control notification handler code here


     
	 Onstop();
	
	  int k = m_list7.GetCurSel();
	
	  	 m_list7.GetText(k,m_SongName);
		if(!m_SongName.IsEmpty()) 
	 {
			  OpenNew(m_SongName);
			 MessageBox(m_SongName);
	 }
	 if(m_Player.PlayerMode() == pmReady) 
	 {
	  MessageBox("bye");
		 m_Player.Play();
	 }
			SetTimer(0, 1000, NULL);
}

here it is working because it is in the same class
where as
void CMPEGPlayerDlg::OnPlay(CString string)
{
Onstop();
	
	/*  int k = m_list7.GetCurSel();
	  CString str;
	  str.Format("%d",k);
	  MessageBox(str);
	  	 m_list7.GetText(k,m_SongName);*/
	 m_SongName=string;
		if(!m_SongName.IsEmpty()) 
	 {
			  OpenNew(m_SongName);
			  MessageBox(m_SongName);
	 }
	 if(m_Player.PlayerMode() == pmReady) 
	 {
	  MessageBox("hi");
		 m_Player.Play();
	 }	
SetTimer(ID_TIMER, 1000,NULL);
	
}

herer not working because this fuction is calling from different class.
ram

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.