×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

compilation pb with Directshow SamplerGrapbber and Direct3d

compilation pb with Directshow SamplerGrapbber and Direct3d

compilation pb with Directshow SamplerGrapbber and Direct3d

(OP)
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.

RE: compilation pb with Directshow SamplerGrapbber and Direct3d

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close