I get errors like this pair when including d3d9.h from the 9.0c sdk, oct =
d3d9.h:252: redefinition of `IDirect3D9'
d3d9.h:191: `IDirect3D9' previously defined here
Here is an excerpt of d3d9.h, starting from the redefinition error on =
/*** IUnknown methods ***/
STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
And the previous definition from line 191,
typedef interface IDirect3D9 IDirect3D9;
Has anyone come across this before and/or could you advise how to go =
about correcting this? So far I've found the ddraw.h includes work fine =
and I've written a successfull direct draw application. I noticed that =
include has a similar typedef statement followed by the interface =
decleration, but it looks like the typedef lines in ddraw.h look a bit =
different, with the typedef statements using struct in place of =
interface, along with the addition of FAR*. Using that arrangement in =
the d3d9.h header didn't help.