Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: some questions about WMFSDK 9

HTVi
TV Discussion Newsgroups

some questions about WMFSDK 9
some questions about WMFSDK9 10/18/2008 2:37:00 PM
i am sorry i am not in good of english,so i want to use chinese to tell you
my question:
//下面这段代码,look this segment of code
hr=mHeaderInfo3->GetAttributeIndices(0,pwszName,NULL,NULL,&indexCount);
if(SUCCEEDED(hr) && indexCount>0)
{
WORD * pwIndex=new WORD[indexCount];

hr=mHeaderInfo3->GetAttributeIndices(0,pwszName,NULL,pwIndex,&indexCount);
if(FAILED(hr))
{
cout<<"fialed to get attribute index"<<endl; break;
}

hr=mHeaderInfo3->ModifyAttribute(0,pwIndex[0],Type,wLangIndex,pValue,dwLength);
if(FAILED(hr))
{
cout<<"failed to modify "<<(CString)pwszName<<endl;
if(hr==NS_E_INVALID_REQUEST) cout<<"error"<<endl;
break;
}
}
else if(SUCCEEDED(hr) && indexCount==0) //attribute not exist
{ hr=mHeaderInfo3->AddAttribute(0,pwszName,NULL,Type,wLangIndex,pValue,dwLength);
if(FAILED(hr))
{
cout<<"failed to add "<<(CString)pwszName<<endl;
if(hr==NS_E_INVALID_REQUEST) cout<<"stream error"<<endl;
break;
}

}
我用这段代码向wma文件里面添加歌词,语言为简体中文(zh-cn),而向mp3文件里面添加歌词的时候,语言为英语(en),有没有人能告诉我这是为什么呀
// I use this segment of code to add code to add lyric to .wma files,the
language is chinese(simplified),zh-cn.but while i add lyric to .mp3 files,the
language is english(en),is there anyone can tell me why????


thanks!!
RE: some questions about WMFSDK 9
some questions about WMFSDK9 10/20/2008 3:28:00 AM
thank you,i have solved this problem!

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen