Thread: output to textbox

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    2

    output to textbox

    I am a programming noob trying to jump into MFC programming. I am trying to create an mp3player using the mci controls. I am trying to get the get the remaining tim left in the song to display in a textbox. this is what i have so far in my play function.


    Code:
    void CMP3PlayerDlg::OnPlay() 
    {
    	int medialength;
    	m_Video = NULL;
    	if (m_Video == NULL)
    	{
    		m_Video = MCIWndCreate(this->GetSafeHwnd(), 
    			AfxGetInstanceHandle(), 
    			WS_CHILD | WS_VISIBLE|MCIWNDF_NOMENU,m_Path);
    	}
    
    	else
    	{
    		MCIWndHome(m_Video);
    	}
    
    	MCIWndPlay(m_Video);
    	Pause = FALSE;
    	MCIWndGetLength(m_Video);
    	SetWindowText(
    	//MCIWndGetPosition(m_Video);
    }
    Last edited by Grunt; 07-07-2003 at 05:26 PM.

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    A programming noob jumping into MFC doesn't sound very wise. If you don't understand the way classes work, or many other C++ features, I anticipate great problems in understanding MFC.
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help for my output array
    By qwertysingh in forum C Programming
    Replies: 1
    Last Post: 02-17-2009, 03:08 PM
  2. execl()/fork() output
    By tadams in forum C Programming
    Replies: 19
    Last Post: 02-04-2009, 03:29 PM
  3. Replies: 4
    Last Post: 11-30-2005, 04:44 PM
  4. Formatting output into even columns?
    By Uncle Rico in forum C Programming
    Replies: 2
    Last Post: 08-16-2005, 05:10 PM
  5. Output problems with structures
    By Gkitty in forum C Programming
    Replies: 1
    Last Post: 12-16-2002, 05:27 AM