Hi!
I'm having problems using class Color in another class called Support.
This is my code:
"colors.hpp"
Code:
# ifndef COLORS_H
# define COLORS_H
# include <windows.h>
class Color
{
public:
// foreground colors
static const FRONT_DARKGREEN = FOREGROUND_GREEN;
static const FRONT_DARKRED = FOREGROUND_RED;
};
# endif // COLORS_H
"support.hpp"
Code:
# ifndef COLORS_H
# define COLORS_H
# include "colors.hpp"
class Support
{
public:
unsigned short col = FRONT_DARKGREEN; // this is not working
};
# endif // COLORS_H
How can I use FRONT_DARKGREEN constant in my Support class?