I have been working on an incredibly simple 3D game in C++ / DirectX 9.
I quickly modelled a mesh in Blender, and exported it to the .X format. When I use
D3DXLoadMeshFromX("mesh.x", D3DXMESH_MANAGED, NULL, NULL, &materialBuffer, NULL,
&materialCount, &mesh);
The HRESULT returns -2005531760.
I looked this up with the DirectX Error Lookup tool, and it tells me it's a parse error. I have no idea what could have caused this - mesh.x exists in the same directory...