I have been developing the video capture part of my program (using
DirectShow and various filters including SampleGrabber and the Null
Renderer) and the display part (using Direct3D) in separate projects and am
now at a point where I wish to combine the two into one.
However, as soon as I #include both <D3DX8.h> and <qedit.h> at the same
time, I suddenly get lots of compiler errors:
should not include d3dtypes.h when compiling for DX8 or newer interfaces
d:\program files\mssdk\include\d3drmobj.h(46) : warning C4005: 'WIN_TYPES' :
macro redefinition
d:\program files\mssdk\include\dxfile.h(48) : see previous
definition of 'WIN_TYPES'
d:\program files\mssdk\include\d3drmobj.h(274) : error C2061: syntax error :
identifier 'LPDIRECT3D'
d:\program files\mssdk\include\d3drmobj.h(299) : error C2061: syntax error :
identifier 'LPDIRECT3DDEVICE'
d:\program files\mssdk\include\d3drmobj.h(314) : error C2061: syntax error :
identifier 'LPDIRECT3D'
d:\program files\mssdk\include\d3drmobj.h(339) : error C2061: syntax error :
identifier 'LPDIRECT3DDEVICE'
d:\program files\mssdk\include\d3drmobj.h(344) : error C2061: syntax error :
identifier 'LPDIRECT3D2'
d:\program files\mssdk\include\d3drmobj.h(348) : error C2061: syntax error :
identifier 'LPDIRECT3DDEVICE2'
d:\program files\mssdk\include\d3drmobj.h(363) : error C2061: syntax error :
identifier 'LPDIRECT3D'
d:\program files\mssdk\include\d3drmobj.h(388) : error C2061: syntax error :
identifier 'LPDIRECT3DDEVICE'
d:\program files\mssdk\include\d3drmobj.h(393) : error C2061: syntax error :
identifier 'LPDIRECT3D2'
d:\program files\mssdk\include\d3drmobj.h(397) : error C2061: syntax error :
identifier 'LPDIRECT3DDEVICE2'
d:\program files\mssdk\include\d3drmobj.h(454) : error C2061: syntax error :
identifier 'LPDIRECT3DVIEWPORT'
d:\program files\mssdk\include\d3drmobj.h(500) : error C2061: syntax error :
identifier 'LPDIRECT3DVIEWPORT'
d:\program files\mssdk\include\d3drm.h(74) : error C2061: syntax error :
identifier 'LPDIRECT3D'
d:\program files\mssdk\include\d3drm.h(156) : error C2061: syntax error :
identifier 'LPDIRECT3D2'
d:\program files\mssdk\include\d3drm.h(240) : error C2061: syntax error :
identifier 'LPDIRECT3D2'
Error executing cl.exe.
I've searched for this problem on Google Groups and have seen a number of
responses asking the people with this problem to ensure that the DX8 SDK
paths appear in the Tools>Options>Directories list before the Visual Studio
paths. The thing is, mine already do (for both Include files and Library
files).
I'm tearing my hair out that this is defeating me, can anyone offer any
guidance on how on earth I can get this to work?
My thanks in advance,
--
Adam.
www.adamdawes.com
--
------------------------------------------------------------------------
Mike Wasson, DirectShow SDK Documentation
This posting is provided "AS IS" with no warranties,
and confers no rights. You assume all risk for your use.
(c) 2002 Microsoft Corporation. All rights reserved.
"Adam Dawes" <ad...@adamdawesnospam.com> wrote in message
news:vwNh9.1097$bi1.2...@newsfep1-gui.server.ntli.net...