tanvon++

January 17, 2007

building the sdk samples

Filed under: DirectShow — tanvon malik @ 4:36 pm

You want to build an sdk sample.
It is this easy,
1: create an empty win32 project;
2: add the sdk sample files to that project;
3: now compile. if the following line give an error

// Initialize COM
if(FAILED(CoInitializeEx(NULL, COINIT_APARTMENTTHREADED)))

change that line with
// Initialize COM
if(FAILED(CoInitialize(NULL)))
4: link the project with the “strmiids.lib” library.

I use this on a sample “PlayWnd”.
I use VS2003.

happy programming.

Blog at WordPress.com.