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