Nick
Nick

Reputation: 10499

Cannot create instance of ICaptureGraphBuilder2

Win32 SmartDevice DLL project - VS 2008

I'm trying to use the ICaptureGraphBuilder2 interface, but when I try to create the istance using the following code:

CComPtr<ICaptureGraphBuilder2> pCaptureGraphBuilder;
hr = pCaptureGraphBuilder.CoCreateInstance(CLSID_CaptureGraphBuilder);

hr is 0x80040154.

How can I solve this problem?

Upvotes: 2

Views: 456

Answers (1)

Roman Ryltsov
Roman Ryltsov

Reputation: 69716

Most likely, Capture Graph Builder (CLSID_CaptureGraphBuilder and CLSID_CaptureGraphBuilder2) is not available in Windows Mobile. It is only available on desktop.

The error code is 0x80040154 = REGDB_E_CLASSNOTREG "Class not registered".

You only have a subset of APIs in Windows Mobile/CE.

Upvotes: 1

Related Questions