Original Post
Please examine these two files and tell me what is giving me this error!! 1>------ Build started: Project: TruSource Game Engine, Configuration: Debug Win32 ------ 1>Compiling... 1>Mesh.cpp 1>c:\users\cole\documents\visual studio 2008\projects\trusource game engine\trusource game engine\mesh.cpp(17) : error C2533: 'Mesh::{ctor}' : constructors not allowed a return type 1>Build log was saved at "file://c:\Users\Cole\Documents\Visual Studio 2008\Projects\TruSource Game Engine\TruSource Game Engine\Debug\BuildLog.htm" 1>TruSource Game Engine - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Mesh.h // Precompiler //////////////////////////////////////////////////////////////////// #ifndef MESH_H #define MESH_H // Includes //////////////////////////////////////////////////////////////////// #include #include // Class Declarations //////////////////////////////////////////////////////////////////// class Mesh { public: Mesh(); ~Mesh(); int GetFaceCount(); int GetVertexCount(); void Load(char* FileName); void Update(); void Transform(); void Rotate(D3DXVECTOR3 Rotation); void Rotate(float x,float y,float z); LPD3DXMESH mesh; D3DMATERIAL9* Materials; LPD3DXMATERIAL D3DXMaterials; LPD3DXBUFFER MaterialBuffer; DWORD MaterialCount; LPDIRECT3DTEXTURE9* Textures; D3DXVECTOR3 Position; D3DXVECTOR3 Velocity; D3DXVECTOR3 Rotation; D3DXVECTOR3 Scale; D3DXMATRIX WorldMatrix; D3DXMATRIX TranslateMatrix; D3DXMATRIX RotateMatrix; D3DXMATRIX ScaleMatrix; } #endif // Mesh.h Mesh.cpp // Precompiler //////////////////////////////////////////////////////////////////// // Includes //////////////////////////////////////////////////////////////////// #include "Display.h" #include "Mesh.h" // Class Definitions //////////////////////////////////////////////////////////////////// Mesh::Mesh() { } Mesh::~Mesh() { }