|
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.
|
|
|
|
|
|
I'd like to write a C++ app program that would store a list of files (by relative path/location) plus it's CRC32 or checksum. Then it would also store more CRC32/checksums for the same file, for each snapshot in time.
The main usage of the app would be to help identify which versions of the current folder contents are.
Does anyone know such program already exist? If not, how to write in C++ with common libraries (boost, etc)?
|
|
|
|
|
Hi all,
i m working on Pocket PC,
i m trying to do many more with like,reading phone book,reading and sending sms.
i also want to learn more.
what kinds of data or things inside of pocket pc we can access and read with using of vc++.
please tell me how can i learn more on pocket pc.
please help me for this.
thanks in advance
|
|
|
|
|
Le@rner wrote: please tell me how can i learn more on pocket pc.
Look here[^] and/or here[^].
It's time for a new signature.
|
|
|
|
|
|
Hello friends,
presently i'm working in a project which uses a ENCRYPTION & DECRYPTION functionality. so i choose Rsa algorithm.... so kindly send any related links and sample coding of RSA.....
i'm waiting for your response....
|
|
|
|
|
VDFGFGV^$%^@@#GBGHBGHBSDFVDSFVDSFVKSDFVSDKFVSDFVKSDFV
NJNFSDV@$%Bfgb6hfgbFBSGBH67htgfbdFGBDFGB656h566DFGBDF
FGB$%#$T%GDGBdfgby6565bdfGBDFGBDFFGBDSDFVDFVSDFVSDFSD
34werfsFVSDFVSDFV45g45gfgBDFGBDFGBBGBFGBFGBFGBFG5542m
vdfvsdfV$#fdfvdfv45g417FGBFGbrjukyuk^$%DFVDFVdfvs3212
This is the code that I used, it's been encrypted with a 2048 bit RSA, but I lost the key.
sorry.
Watched code never compiles.
|
|
|
|
|
Maximilien wrote: This is the code that I used, it's been encrypted with a 2048 bit RSA, but I lost the key.
ohhh.. he need to deployed 2046 cpu based mother board to find it now
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Read here, especially point #2.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Try doing some research for yourself, here[^] is a good place to start.
It's time for a new signature.
|
|
|
|
|
Hi,
How to add manifest file to my win32 project in VS2208. I tried this link but no success.
|
|
|
|
|
in VS2008 u can try #pragma comment(linker,...) directive too.
eg:
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
|
|
|
|
Thanks for reply, I am using VS 2005.
And I have added before one manifest for my win32 progress control now I am going to add manifest for UAC. But how to combine these two manifest?
|
|
|
|
|
|
Hi all,
I need a Program to monitor network traffic and use filter to get selected URLs using winpcap library and win32 in C++.
I've seen code in http://www.codeproject.com/KB/IP/URLLogger.aspx?msg=2288055#xx2288055xx but that is not working. Can anyone having the workable code to resolve my issue? Plz let me know. It's URGENT!
Thanks
Subrat
|
|
|
|
|
Member 4708266 wrote: It's URGENT!
Oh no it isn't!
It's time for a new signature.
|
|
|
|
|
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
|
|
|
|
|
|
Member 4708266 wrote: Can anyone having the workable code to resolve my issue? Plz let me know. It's URGENT!
Dear nothing is urgent, people here aren#t paid to help other! anyways
Member 4708266 wrote: http://www.codeproject.com/KB/IP/URLLogger.aspx?msg=2288055#xx2288055xx
you have to ask author directly, i hope he can help you out!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi all,
I am using IPersistFile::Save Method. My problem is i am passing a CString variable in this function and compiler is giving error C2664: 'IPersistFile::Save' : cannot convert parameter 1 from 'CString' to 'LPCOLESTR'.
hres = ppf->Save(szLinkName,TRUE);
ppf>Release();
szLinkName is a CString variable which is being passed in this function..
How can i convert it???
Thanks in advance
|
|
|
|
|
Try: Please tell my how to change from cstring to LPOLESTR and make my code right: [^]
|
|
|
|
|
Before you pass your CString convert it into BSTR or LPCOLESTR
const LPCOLESTR* pCole;
int iLen = strlen(szLinkName);
memcpy(pCole,szLinkName,iLen);
hres = ppf->Save(pCole,TRUE);
ppf->Release();
|
|
|
|
|
@Intersect☺™ wrote: const LPCOLESTR* pCole;
int iLen = strlen(szLinkName);
memcpy(pCole,szLinkName,iLen);
hres = ppf->Save(pCole,TRUE);
ppf->Release();
Note the parts I've underlined. This code will cause nothing but trouble.
Steve
|
|
|
|
|
try
CStringW wszLinkName(szLinkName);
hres = ppf->Save(wszLinkName,TRUE);
ppf>Release();
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|