Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compile errors when I include qedit.h

577 views
Skip to first unread message

Adam Dawes

unread,
Sep 17, 2002, 5:57:24 PM9/17/02
to
I've been stumbling from one problem to another for some time now trying to
get a video rendering application using DirectX to work and just as I think
I've got it I hit another problem that I just cannot work out.

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 [MS]

unread,
Sep 17, 2002, 6:38:10 PM9/17/02
to
Qedit.h is not compatible with the D3D8 headers. The reason is that qedit.h
depends on the DirectX Transform headers, which themselves depend on the
older versions of the D3D headers. The only thing you can really do is
partition the qedit functionality and the D3D8 functionality into different
source files in your project. (For example, write wrapper functions that
manage the Sample Grabber and Null Renderer stuff.)


--
------------------------------------------------------------------------
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...

0 new messages