I have the following globals defined (the relevant ones, anyway):

DWORD dwNumMaterials;
LPD3DXBUFFER lpMaterials;
LPD3DXMESH lpMeshBody;

And the call to D3DLoadMeshFromX is here:

D3DXLoadMeshFromX(L"body.x",
		  D3DXMESH_SYSTEMMEM,
		  lpD3DDevice,
		  NULL,
		  &lpMaterials,
		  NULL,
		  &dwNumMaterials,
		  &lpMeshBody);

When this is called, it returns a generic error (0x80004005). Also, if it is needed I can post more code. Any ideas on what I did wrong? And yes, body.x does exist in the program's path.

Have you tried doing the DxDiag.exe tests?

I just did and all tests were successful.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.