HRESULT Direct3DCreate9Ex(
UINT SDKVersion,
LPDIRECT3D9 * ppD3D
);
But the function is actually declared as:
HRESULT WINAPI Direct3DCreate9Ex(UINT SDKVersion, IDirect3D9Ex**);
These are not compatible; the first declaration says that you can pass
a IDirect3D9 pointer to the function, the second says it must actually
be an IDirect3D9Ex pointer.
--
"Dr Pizza" <DrP...@newsgroups.nospam> wrote in message
news:xn0f1fo60...@msnews.microsoft.com...
> Check your LPDIRECT3D9 definition
typedef struct IDirect3D9 *LPDIRECT3D9, *PDIRECT3D9;
--
Note that the Direct3D9Ex interface is currently only exposed through the
Windows SDK, not the DirectX SDK.
--
Chuck Walbourn
SDE, Game Technology Group
This posting is provided "AS IS" with no warranties, and confers no rights.