Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compilation pb with Directshow SamplerGrapbber and Direct3d

Status
Not open for further replies.

6408

Programmer
Mar 20, 2004
1
FR
Hello

I don't understand why if i use The SampleGrabber DirectShow object and direct3d in the same project, Visual C++ 6 can't build it.

Environnement:
Win XP - Visual C++6 - directx9b Sdk.

For example, try this Using the project:
C:\DXSDK\Samples\C++\Direct3D\Tutorials\Tut04_Lights

in Lights.cpp file, add #include <qedit.h>

#include <Windows.h>
#include <mmsystem.h>
#include <d3dx9.h>

// Just Add this include
#include <qedit.h> // <---- For SampleGrabber . Without it, the example works.
....

And compile:

Error Message:

Compiling...
Lights.cpp
should not include d3dtypes.h when compiling for DX8 or newer interfaces
C:\DXSDK\Include\d3drmobj.h(46) : warning C4005: 'WIN_TYPES' : macro redefinition
C:\DXSDK\Include\dxfile.h(48) : see previous definition of 'WIN_TYPES'
C:\DXSDK\Include\d3drmobj.h(274) : error C2061: syntax error : identifier 'LPDIRECT3D'
C:\DXSDK\Include\d3drmobj.h(299) : error C2061: syntax error : identifier 'LPDIRECT3DDEVICE'
C:\DXSDK\Include\d3drmobj.h(314) : error C2061: syntax error : identifier 'LPDIRECT3D'
C:\DXSDK\Include\d3drmobj.h(339) : error C2061: syntax error : identifier 'LPDIRECT3DDEVICE'
C:\DXSDK\Include\d3drmobj.h(344) : error C2061: syntax error : identifier 'LPDIRECT3D2'
C:\DXSDK\Include\d3drmobj.h(348) : error C2061: syntax error : identifier 'LPDIRECT3DDEVICE2'
C:\DXSDK\Include\d3drmobj.h(363) : error C2061: syntax error : identifier 'LPDIRECT3D'
C:\DXSDK\Include\d3drmobj.h(388) : error C2061: syntax error : identifier 'LPDIRECT3DDEVICE'
C:\DXSDK\Include\d3drmobj.h(393) : error C2061: syntax error : identifier 'LPDIRECT3D2'
C:\DXSDK\Include\d3drmobj.h(397) : error C2061: syntax error : identifier 'LPDIRECT3DDEVICE2'
C:\DXSDK\Include\d3drmobj.h(454) : error C2061: syntax error : identifier 'LPDIRECT3DVIEWPORT'
C:\DXSDK\Include\d3drmobj.h(500) : error C2061: syntax error : identifier 'LPDIRECT3DVIEWPORT'
C:\DXSDK\Include\d3drm.h(74) : error C2061: syntax error : identifier 'LPDIRECT3D'
C:\DXSDK\Include\d3drm.h(156) : error C2061: syntax error : identifier 'LPDIRECT3D2'
C:\DXSDK\Include\d3drm.h(240) : error C2061: syntax error : identifier 'LPDIRECT3D2'
Error executing cl.exe.

Lights.exe - 15 error(s), 1 warning(s)

Do You have the same result ?

Thank's for your help.
 
Did you ever find a solution to this issue?

I'm experiencing the same problem trying to use the Null Renderer filter. qedit.h includes the old d3d* files instead of the new d3d9* files.

I hope that you have found the solution and can help me as well!

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top