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.