Click here to Skip to main content
16,003,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do I check syntax in Visual Studio 2008? Pin
Iain Clarke, Warrior Programmer21-Apr-10 9:50
Iain Clarke, Warrior Programmer21-Apr-10 9:50 
QuestionMigrating code from VS6 to vs 2008 [modified] - SOLVED Pin
Jim Crafton21-Apr-10 6:46
Jim Crafton21-Apr-10 6:46 
QuestionDefining a second window class in in MFC app for a CDialog Pin
ForNow21-Apr-10 6:40
ForNow21-Apr-10 6:40 
AnswerRe: Defining a second window class in in MFC app for a CDialog Pin
«_Superman_»21-Apr-10 7:41
professional«_Superman_»21-Apr-10 7:41 
GeneralRe: Defining a second window class in in MFC app for a CDialog Pin
ForNow21-Apr-10 7:44
ForNow21-Apr-10 7:44 
JokeRe: Defining a second window class in in MFC app for a CDialog Pin
«_Superman_»21-Apr-10 7:44
professional«_Superman_»21-Apr-10 7:44 
GeneralRe: Defining a second window class in in MFC app for a CDialog Pin
ThatsAlok21-Apr-10 19:09
ThatsAlok21-Apr-10 19:09 
QuestionA Strange Problem With WMP Control Pin
LieDragon21-Apr-10 6:03
LieDragon21-Apr-10 6:03 
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.

<code>
	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());
	}
</code>


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.
AnswerRe: A Strange Problem With WMP Control Pin
LieDragon21-Apr-10 18:09
LieDragon21-Apr-10 18:09 
Questioncrc32/checksum app Pin
andwan021-Apr-10 4:11
andwan021-Apr-10 4:11 
QuestionHelp for Pocket PC. Pin
Le@rner21-Apr-10 3:02
Le@rner21-Apr-10 3:02 
AnswerRe: Help for Pocket PC. Pin
Richard MacCutchan21-Apr-10 4:23
mveRichard MacCutchan21-Apr-10 4:23 
AnswerRe: Help for Pocket PC. Pin
LittleYellowBird21-Apr-10 5:16
LittleYellowBird21-Apr-10 5:16 
QuestionRSA Algorithm... Pin
D Naveen21-Apr-10 2:24
D Naveen21-Apr-10 2:24 
AnswerRe: RSA Algorithm... Pin
Maximilien21-Apr-10 3:04
Maximilien21-Apr-10 3:04 
GeneralRe: RSA Algorithm... Pin
ThatsAlok21-Apr-10 19:05
ThatsAlok21-Apr-10 19:05 
AnswerRe: RSA Algorithm... Pin
David Crow21-Apr-10 3:24
David Crow21-Apr-10 3:24 
AnswerRe: RSA Algorithm... Pin
Richard MacCutchan21-Apr-10 4:26
mveRichard MacCutchan21-Apr-10 4:26 
QuestionManifest Pin
john563221-Apr-10 1:04
john563221-Apr-10 1:04 
AnswerRe: Manifest Pin
Cool_Dev21-Apr-10 2:09
Cool_Dev21-Apr-10 2:09 
GeneralRe: Manifest Pin
john563221-Apr-10 3:31
john563221-Apr-10 3:31 
GeneralRe: Manifest Pin
Cool_Dev21-Apr-10 19:55
Cool_Dev21-Apr-10 19:55 
QuestionProblem in using filter in wincap library Pin
Subrat 470826621-Apr-10 0:34
Subrat 470826621-Apr-10 0:34 
AnswerRe: Problem in using filter in wincap library Pin
Richard MacCutchan21-Apr-10 1:29
mveRichard MacCutchan21-Apr-10 1:29 
AnswerRe: Problem in using filter in wincap library Pin
LieDragon21-Apr-10 6:07
LieDragon21-Apr-10 6:07 

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.