   error detection
  solved problem [Edited by - jagguy2 on January 3, 2008 2:01:19 AM]
  Why are you defining your Vertex3 struct inside your scene_object class?Also, you have not implemented the initVB member function of scene_object in that code, but rather created a function in the global namespace with the same name. You want this:HRESULT scene_object::initVB( LPDIRECT3DDEVICE9  g_pd3dDevice,    LPD3DXMESHg_mesh,LPD3DXMESH g_mesh2);  where do i define the strucure as i dont want a global struct?I fixed the 100's of errors by rebooting and it compiles[Edited by - jagguy2 on January 2, 2008 7:44:06 PM];  moved[Edited by - jagguy2 on January 2, 2008 10:27:55 PM];  solved[Edited by - jagguy2 on January 3, 2008 2:17:43 AM]