   BoundingSphere problems
Apologies if this is the wrong forum section, but wasn't sure where else to postI want to draw a ray from my mouse pointer and see if it intersects with any mesh (so I can see if the user has clicked on a temple or villager or whatever). Previously I've been programming in c# and used XNA, and all the tutorials and help I can find googling etc is based on that. My current project is just sticking with c++ and directx9, and having done some more searching on the web, the D3DXFRAMECalculateBoundingSphere and D3DXSphereBoundProbe functions seem like they ought to do what I want.However, I keep getting the following error when I compile:error C3861: 'D3DXFRAMECalculateBoundingSphere': identifier not foundMy guess is I'm not putting the right includes in, but I can't work out what I'm missing. This is my code:#pragma comment(lib, "d3dx9.lib")#include <windows.h>#include <windowsx.h>#include <d3d9.h>#include <d3dx9.h>#include <d3dx9anim.h>#include <d3dx9mesh.h>class bounding_sphere{public:bounding_sphere(LPD3DXMESH *);bool intercept(D3DXVECTOR3*,D3DXVECTOR3*);private:D3DXVECTOR3 * centre;float radius;};#include "../Include/bounding_sphere.h"bounding_sphere::bounding_sphere(LPD3DXMESH * mesh){ D3DXFRAMECalculateBoundingSphere(mesh,centre,radius);}bool bounding_sphere::intercept(D3DXVECTOR3 * rayOrigin, D3DXVECTOR3 * rayVector){  return D3DXSphereBoundProbe(centre,radius,rayOrigin,rayVector);}I've also added d3dx9.lib as an additional include / dependancy in the c++ compiler and linker sections of project properties
  Try D3DXFrameCalculateBoundingSphere (i.e., lowercase FRAME)   