windows - why create CLSID_CaptureGraphBuilder2 instance always failed in a machine -


it's real strange issue, machine information below dxdiag. there no error reported, create clsid_capturegraphbuilder2 instance failed in machine. it's okay create clsid_filtergraph. before create clsid_capturegraphbuilder2, have called coinitialize , created clsid_filtergraph. machine has error, dll related interface or function needed call before make work? in advance.


system information

time of report: 4/24/2010, 09:46:58 machine name: turion operating system: windows xp home edition (5.1, build 2600) service pack 3 (2600.xpsp_sp3_qfe.100216-1510) language: japanese (regional setting: japanese) system manufacturer: filled o.e.m. system model: ms-7145 bios: default system bios processor: amd turion(tm) 64 mobile technology mt-30, mmx, 3dnow, ~1.6ghz memory: 768mb ram page file: 376mb used, 1401mb available windows dir: c:\windows directx version: directx 9.0c (4.09.0000.0904) dx setup parameters: not found dxdiag version: 5.03.2600.5512 32bit unicode


dxdiag notes

directx files tab: no problems found. display tab 1: no problems found. sound tab 1: no problems found. sound tab 2: no problems found. music tab: no problems found. input tab: no problems found. network tab: no problems found.

don't call cocreateinstance clsid_filtergraph .. pointless. cocreateinstance clsid_createcapturegraph2 , post code use in cocreateinstance , hresult value returned.

the following code "should" work:

icapturegraphbuilder2* pcapture = null; hresult hr = cocreateinstance( clsid_capturegraphbuilder, null, clsctx_inproc_server, iid_icapturegraphbuilder2, (void**) &pcapture) ; 

if doesn't hresult returned in hr , tell (or yourself).

other invalid parameters thing ought able fail here class isn't registered. if majorly amiss ... ought not possible.


Comments

Popular posts from this blog

Delphi Wmi Query on a Remote Machine -