3) again! VC++ doesn't give me errors if I have something wrong iny my code!
ea following header-file.
// This is the graphic user interface baseclass! All gui objects inherit from it.#pragma once#ifndef __YAE_GUI_BASE_HPP__#define __YAE_GUI_BASE_HPP__namespace yae{ class GUI { public: GUI( void ){} virtual ~GUI( void ){} public: virtual int getX( void ) const { return 0; } virtual int getY( void ) const { return 0; } virtual unsigned int getW( void ) const { return 0; } virtual unsigned int getH( void ) const { return 0; } protected: }; } // namespace yae#endif
okay..
on errors:
// This is the graphic user interface baseclass! All gui objects inherit from it.#pragma once#ifndef __YAE_GUI_BASE_HPP__#define __YAE_GUI_BASE_HPP__namespace yae{ class GUI public: GUI( vd )} virtual ~UI( void ){} public: virtual it getX( oid ) const { return 0 } viral int getY( void ) const { return 0; virtual unsignd int getW( void ) const { return 0; } virtual unsigned i getH( void const { return 0; } protected: } } // namespace yae#endif
VC++ can't check my headers for errors?? Why.. even DevC++ can..
Help! :/
Thank you! :)
::edit::
6) Should I write #pragma comment( lib, "SDL.lib" )? Currently I have a SDL_includes header file that contains:
// Header that includes SDL and its .lib#pragma once#ifndef __YAE_SDL_INCLUDES_HPP__#define __YAE_SDL_INCLUDES_HPP__ #include <SDL.h> #pragma comment( lib, "SDL.lib" )#endif
I include this header if I want to use SDL in an other file.
Is this correct?
[Edited by - rakoon2 on October 9, 2004 6:39:10 AM]