在GraphEdit中模拟构建Graph[16]

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

本文简介:选择自 aoosang 的 blog

例如,下面的代码创建了文件回放的graph并保存为mygraph.grf:

void __cdecl main(void)

{

    hresult hr;

    igraphbuilder *pgraph;

    coinitialize(null);

   

    // create the filter graph manager and render a file.

    cocreateinstance(clsid_filtergraph, null, clsctx_inproc_server,

        iid_igraphbuilder, reinterpret_cast<void**>(&pgraph));

    hr = pgraph->renderfile(l"c:\\video.avi", null);

 

    if (succeeded(hr))

    {

        hr = savegraphfile(pgraph, l"c:\\mygraph.grf");

    }

   

    pgraph->release();

    couninitialize();

}

 

5 loading a graphedit file programmatically

本文关键:在GraphEdit中模拟构建Graph
  相关方案
Google
 

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

go top