DirectShow setup for windows 7 / windows 8

Adopted from http://blog.csdn.net/star_liux/article/details/7460718

下载DirectShow

2.配置:

      2.1 将DirectShow解压,我的解压目录为D:\DirectShow;

      2.2 配置VS2010的项目”属性”:

             A.在”VC++目录”的”可执行文件目录”中添加D:\DirectShow\bin

             B.在”VC++目录”的”包含目录”中添加D:\DirectShow\include

             C.在”VC++目录”的”库目录”中添加D:\DirectShow\lib

             D.把D:\DirectShow\include中的”CameraDS.h”、”CameraDS.cpp”复制到项目当前目录下,并加载到项目的”头文件”、”源文件”中,如下图:

             

3.修改winNT.h

       以管理员身份(开始->所有程序->附件->命令提示符(右键,以管理员身份打开,然后打开目标文档))打开C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include目录

       在winNT.h文件第290行左右的如下两行

       typedef void *PVOID;

       typedef void *POINTER_64 PVOID64;

      之前添加:

      #define POINTER_64 __ptr64

4.在CameraDS.cpp头添加: #include “stdafx.h”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Maya's Programming & Electronics Blog

An attempt at a proper programming & electronics blog

%d bloggers like this: