Directshow开发的基本技巧[18]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 aoosang 的 blog

            hr = ppropbag->read(l"friendlyname", &varname, 0);

            if (succeeded(hr))

            {

                // display the name in your ui somehow.

            }

            variantclear(&varname);

 

            // to create an instance of the filter, do the following:

            ibasefilter *pfilter;

            hr = pmoniker->bindtoobject(null, null, iid_ibasefilter,

                (void**)&pfilter); //生成一个filter绑定到设备上。

            // now add the filter to the graph.

            //remember to release pfilter later.

            ppropbag->release();

        }

        pmoniker->release();

本文关键:Directshow开发的基本技巧
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top