Wednesday, November 13, 2013

How to use visual studio 2012 express edition to build DirectShow filters

How to use visual studio 2012 express edition to build DirectShow filters

Normally, to create a DirectX project requires professional edition, but there are ways and workaround to allow us to use express edition to build small projects.
  1. Download and install visual studio 2012 express edition. 
  2.    Download and install Windows SDK v7.0
  3.        Download and install Windows Driver Development Kit (aka WinDDK)


Note that C:\windowsSDK\v7.0\Samples\multimedia\directshow\baseclasses has the files to build the strmbase.lib for both debug and release versions. These library files can be statically linked to your own project. When creating a project like this: http://www.codeproject.com/Articles/152317/DirectShow-Filters-Development-Part-1-Video-Render. It requires WTL header files and libraries, otherwise, the code #include "atlbase.h" will cause a lot of link errors. This is why we need WinDDK even though we are not developing any drivers. The location of the WTL is:
Include path: C:\WinDDK\7600.16385.1\inc\atl71
Lib path: C:\WinDDK\7600.16385.1\lib\ATL\i386

Here we are building 32 bit applications. Once these path and libraries are added to the project, we can compile and use directshow sample codes from Windows SDK. Note that there is no need to install DirectX SDK for this. 

0 Comments:

Post a Comment

<< Home