<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0053)http://www.codeproject.com/KB/audio-video/ManWMF.aspx -->
<HTML><HEAD><TITLE>CodeProject: C# Windows Media Format SDK Translation. Free source code and programming help</TITLE><LINK
href="CodeProject C# Windows Media Format SDK Translation_ Free source code and programming help_files/ForumClassicIE6.css"
type=text/css rel=stylesheet><LINK
href="CodeProject C# Windows Media Format SDK Translation_ Free source code and programming help_files/CodeProject.0148"
type=text/css rel=stylesheet><LINK
href="CodeProject C# Windows Media Format SDK Translation_ Free source code and programming help_files/ForumClassic.0148"
type=text/css rel=stylesheet>
<STYLE type=text/css>.FeatureBlockContent {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px
}
.FeatureBlockContent UL {
PADDING-LEFT: 20px
}
</STYLE>
<LINK
href="CodeProject C# Windows Media Format SDK Translation_ Free source code and programming help_files/navmenu_ie6.css"
type=text/css rel=stylesheet>
<STYLE type=text/css>#ATD {
BORDER-RIGHT: #999 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: #999 1px solid; DISPLAY: none; PADDING-LEFT: 10px; Z-INDEX: 200; LEFT: -5000px; PADDING-BOTTOM: 10px; BORDER-LEFT: #999 1px solid; PADDING-TOP: 10px; BORDER-BOTTOM: #999 1px solid; WHITE-SPACE: nowrap; POSITION: absolute; TOP: -90px; BACKGROUND-COLOR: white
}
</STYLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META
content="In this article, I describe a translation of most of the WMF SDK interfaces, data structures, constants, and functions into C#.; Author: Idael Cardoso; Section: Audio and Video; Chapter: Multimedia"
name=Description>
<META
content=".NET 1.0, .NET 1.1, Win2K, WinXP, Win2003, VS.NET2003, C#, Dev, Intermediate,Audio and Video,Multimedia,Free source code, tutorials"
name=Keywords>
<META content="The Code Project" name=Author>
<META content=General name=Rating>
<META content="index, follow" name=Robots>
<META content="1 days" name=Revisit-After><LINK
title="CodeProject Latest articles - All topics"
href="http://www.codeproject.com/webservices/articlerss.aspx?cat=1"
type=application/rss+xml rel=alternate><LINK
title="CodeProject Latest articles - MFC / C++"
href="http://www.codeproject.com/webservices/articlerss.aspx?cat=2"
type=application/rss+xml rel=alternate><LINK
title="CodeProject Latest articles - C#"
href="http://www.codeproject.com/webservices/articlerss.aspx?cat=3"
type=application/rss+xml rel=alternate><LINK
title="CodeProject Latest articles - ASP.NET"
href="http://www.codeproject.com/webservices/articlerss.aspx?cat=4"
type=application/rss+xml rel=alternate><LINK
title="CodeProject Latest articles - .NET"
href="http://www.codeproject.com/webservices/articlerss.aspx?cat=5"
type=application/rss+xml rel=alternate><LINK
title="CodeProject Latest articles - VB.NET"
href="http://www.codeproject.com/webservices/articlerss.aspx?cat=6"
type=application/rss+xml rel=alternate><LINK title="CodeProject Lounge Postings"
href="http://www.codeproject.com/webservices/LoungeRSS.aspx"
type=application/rss+xml rel=alternate><LINK title=CodeProject
href="http://www.codeproject.com/info/OpenSearch.xml"
type=application/opensearchdescription+xml rel=search><LINK href="/favicon.ico"
type=image/ico rel=icon><LINK href="/favicon.ico" type=image/ico
rel="shortcut icon">
<SCRIPT language=Javascript
src="CodeProject C# Windows Media Format SDK Translation_ Free source code and programming help_files/jquery-1.3.2.min.js"
type=text/javascript></SCRIPT>
<SCRIPT language=Javascript
src="CodeProject C# Windows Media Format SDK Translation_ Free source code and programming help_files/ShortCuts.js"
type=text/javascript></SCRIPT>
<SCRIPT language=Javascript type=text/javascript>//<![CDATA[
if(top!=self)top.location.href=location.href; if(typeof(DemoUrl)!="undefined")document.write(unescape('%3Cme')+'ta http'+'-equiv="re' +'fresh" con'+'tent="1;url='+DemoUrl+unescape('"%3CE'));
function LK(e) { var lounge = document.getElementById("ctl00_TopNavBar_Lounge"); var soapbox = document.getElementById("ctl00_TopNavBar_Soapbox"); if (lounge && soapbox) { lounge.style.display = e.ctrlKey? "none" : "inline"; soapbox.style.display = e.ctrlKey? "inline" : "none"; }}
function LC(e) {
window.location.href = e.ctrlKey ? '/script/Forums/View.aspx?fid=1536756':'/Lounge.aspx';
if (document.all) e.returnValue = false; else e.preventDefault();
}
function ToggleMenu(itemName)
{
var elm = document.getElementById(itemName);
var i,others = document.getElementById('SectionMenu');
for(i=0; i < others.childNodes.length; i++)
{
var other = others.childNodes[i];
if ((other.className == 'MenuSectionBlock') && (other != elm))
other.style.display='none';
}
if (elm.style.display == 'block') elm.style.display='none';
else elm.style.display='block';
return false;
}
function ChkRtctl00_RateArticle(val, objId) {if (val<=2) {$('div[name=RateItem_' + objId + '] .RateComDiv').css("display","");}else $('div[name=RateItem_' + objId + '] .RateComDiv').css("display","none");}
function MarkAns(MemberID,MsgID,gp,bp,mt,QID){
document.write(unescape("%3Ca href=\"#xx" + MsgID.toString() + "xx\" onclick=\"RateMsg("+MemberID.toString()+","+MsgID.toString()+",6,"+QID.toString()+");\"%3E"));
document.write(unescape("%3Cimg height=\"20\" width=\"20\" src=\"/script/Forums/Images/good.png\" alt=\"good\" border=\"0\" align=\"absmiddle\" /%3E "+gp+" "+mt+"%3C/a%3E "));
document.write(" "); document.write(unescape("%3Ca href=\"#xx" + MsgID.toString() + "xx\" onclick=\"RateMsg("+MemberID.toString()+","+MsgID.toString()+",7,"+QID.toString()+");\"%3E"));
document.write(unescape("%3Cimg height=\"20\" width=\"20\" src=\"/script/Forums/Images/bad.png\" alt=\"bad\" border=\"0\" align=\"absmiddle\" /%3E "+bp+" "+mt+"%3C/a%3E"));
}
function MsgVFrm(MemberID,MsgID,GB,gp,bp,mt){
if(!GB)document.write("Rate this message: ");
document.write(unescape("%3Ca href=\"#xx" + MsgID.toString() + "xx\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ","));document.write((GB?"5":"1")+unescape(",0);\"%3E"));
if(GB) document.write(unescape("%3Cimg height=\"20\" width=\"20\" src=\"/script/Forums/Images/good.png\" alt=\"good\" border=\"0\" align=\"absmiddle\" /%3E "+gp+" "+mt+"%3C/a%3E "));
else document.write(unescape("%3Cimg height=\"14\" width=\"14\" src=\"/script/Forums/Images/thumbs_down.gif\" alt=\"vote 1\" border=\"0\" align=\"middle\" /%3E%3C/a%3E "));
if(GB)document.write(" "); else for(var i=1; i<=5;i++)
document.write(unescape("%3Ca class=\"Frm_MHL\" href=\"#xx" + MsgID.toString() + "xx\" title=\"vote this message a " + i.toString() + "\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ", " + i.toString() + ",0)\"%3E%3Cb%3E" + i.toString() + "%3C/b%3E%3C/a%3E "));
document.write(unescape("%3Ca href=\"#xx" + MsgID.toString() + "xx\" onclick=\"RateMsg(" + MemberID.toString() + ", " + MsgID.toString() + ","));document.write((GB?"1":"5")+unescape(",0);\"%3E"));
if(GB)document.write(unescape("%3Cimg height=\"20\" width=\"20\" src=\"/script/Forums/Images/bad.png\" alt=\"bad\" border=\"0\" align=\"absmiddle\" /%3E "+bp+" "+mt+"%3C/a%3E"));
else document.write(unescape("%3Cimg height=\"14\" width=\"14\" src=\"/script/Forums/Images/thumbs_up.gif\" border=\"0\" alt=\"vote 5\" align=\"middle\" /%3E%3C/a%3E "));
}
function ReportMsg(userid, msgid, score) {
if (confirm("Are you sure you want this message removed?"))
return RateMsg(userid, msgid, score, 0);
else return false;
}
function RateMsg(memberid, msgid, score, questionId) {
var req = new ActiveXObject("MSXML2.XMLHTTP");
req.onreadystatechange = function() {
if (req.readyState == 4){
if (req.status == 200){
var respText = req.responseText;
var re = new RegExp(unescap