Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

LieDragon

@LieDragon
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • A Strange Problem With WMP Control
    L LieDragon

    Who can help me?

    C / C++ / MFC help csharp c++ visual-studio

  • who can teach me EngLish
    L LieDragon

    Oh, this man is excellent. You know how to learn English on the website of iciba.

    C / C++ / MFC c++ com

  • who can teach me EngLish
    L LieDragon

    Oh, boy. My English is poor, too! Maybe you are Chinese according to the email server of your email address. ;P

    C / C++ / MFC c++ com

  • Problem in using filter in wincap library
    L LieDragon

    I think you can search for the documents in http://www.winpcap.org. If you want others to help you sovle this problem, you'd better put your problem source code here ;P

    C / C++ / MFC help c++ com sysadmin question

  • A Strange Problem With WMP Control
    L LieDragon

    Fisrt, I must say that my first language is not English, so my English is poor and maybe the article is hard to understand. But I will try my best to descript it. When I used the "CListCtrl" and "Windows Media Player Control" in MFC under Visual Studio 6.0, a strange problem occured.

    	CWMPPlayer4	m_wmpplayer;
    	m_wmpplayer.GetControls().stop();
    	m_wmpplayer.SetUrl("D:\\WestLife\\MyLove.mp3");
    	CWMPMedia media = m_wmpplayer.GetCurrentMedia();
    	for (int i = 0; i < 5; i++)
    	{
    		m_playlist.InsertItem(LVIF_TEXT | LVIF_STATE, i, media.getItemInfo("Name"), 0, LVIS_SELECTED, 0, 0);
    		
    		CString strBitRate = media.getItemInfo("BitRate");
    		int nBitRate = atoi(strBitRate.GetBuffer(strBitRate.GetLength()));
    		strBitRate.Format(_T("%dKbps"), nBitRate / 1000);
    		m_playlist.SetItemText(i, 1, media.getItemInfo("author"));
    		m_playlist.SetItemText(i, 2, strBitRate);
    		m_playlist.SetItemText(i, 3, m_wmpplayer.GetUrl());
    	}
    

    When I run the above code, the bitrate of the CListCtrl's list items' is 0kbps and the "author" is empty. But if I call the MessageBox function in the for-loop, the result is correct. The bitrate will be the fact bitrate and the author will also not be empty. I really cannot understand why this condition could happen. It would be a honor to me If you can help me solve this problem. Thank you very much.

    C / C++ / MFC help csharp c++ visual-studio
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups