Who can help me?
LieDragon
Posts
-
A Strange Problem With WMP Control -
who can teach me EngLishOh, this man is excellent. You know how to learn English on the website of iciba.
-
who can teach me EngLishOh, boy. My English is poor, too! Maybe you are Chinese according to the email server of your email address. ;P
-
Problem in using filter in wincap libraryI 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
-
A Strange Problem With WMP ControlFisrt, 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.