#### Archived

This topic is now archived and is closed to further replies.

# Problems using SampleGrabber in DShow

This topic is 5977 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I am trying to use the SampleGrabber in my app. I am having problems compiling when I include the qedit.h file. The errors I am getting are as follows:
should not include d3dtypes.h when compiling for DX8 or newer interfaces
F:\DirectX81SDK\include\d3drmobj.h(46) : warning C4005: 'WIN_TYPES' : macro redefinition
F:\DirectX81SDK\include\dxfile.h(48) : see previous definition of 'WIN_TYPES'
F:\DirectX81SDK\include\d3drmobj.h(274) : error C2061: syntax error : identifier 'LPDIRECT3D'
F:\DirectX81SDK\include\d3drmobj.h(299) : error C2061: syntax error : identifier 'LPDIRECT3DDEVICE'
F:\DirectX81SDK\include\d3drmobj.h(314) : error C2061: syntax error : identifier 'LPDIRECT3D'
F:\DirectX81SDK\include\d3drmobj.h(339) : error C2061: syntax error : identifier 'LPDIRECT3DDEVICE'
F:\DirectX81SDK\include\d3drmobj.h(344) : error C2061: syntax error : identifier 'LPDIRECT3D2'
F:\DirectX81SDK\include\d3drmobj.h(348) : error C2061: syntax error : identifier 'LPDIRECT3DDEVICE2'
F:\DirectX81SDK\include\d3drmobj.h(363) : error C2061: syntax error : identifier 'LPDIRECT3D'
F:\DirectX81SDK\include\d3drmobj.h(388) : error C2061: syntax error : identifier 'LPDIRECT3DDEVICE'
F:\DirectX81SDK\include\d3drmobj.h(393) : error C2061: syntax error : identifier 'LPDIRECT3D2'
F:\DirectX81SDK\include\d3drmobj.h(397) : error C2061: syntax error : identifier 'LPDIRECT3DDEVICE2'
F:\DirectX81SDK\include\d3drmobj.h(454) : error C2061: syntax error : identifier 'LPDIRECT3DVIEWPORT'
F:\DirectX81SDK\include\d3drmobj.h(500) : error C2061: syntax error : identifier 'LPDIRECT3DVIEWPORT'
F:\DirectX81SDK\include\d3drm.h(74) : error C2061: syntax error : identifier 'LPDIRECT3D'
F:\DirectX81SDK\include\d3drm.h(156) : error C2061: syntax error : identifier 'LPDIRECT3D2'
F:\DirectX81SDK\include\d3drm.h(240) : error C2061: syntax error : identifier 'LPDIRECT3D2'

As soon as I comment out the include of the qedit.h file, I am able to compile fine. I thought it might have to do with some legacy files that were getting included in the qedit.h file, but I am able to load the samples and compile them. Any help would be greatly appreciated. Thanks. OS: Win2k SDK: 8.1 Edited by - Arcus on February 6, 2002 5:43:36 PM

##### Share on other sites
perhaps the first line is the clue
quote:

should not include d3dtypes.h when compiling for DX8 or newer interfaces

##### Share on other sites
I am not including it. It is being included somewhere in the chain with qedit.h which is the required file.

Arcus

Edited by - Arcus on February 6, 2002 9:21:26 PM

##### Share on other sites
I''ve had the same problems before - I think you need to reorder the include directives.

• 10
• 9
• 48
• 12
• 10
• ### Forum Statistics

• Total Topics
631385
• Total Posts
2999705
×