header: #pragma once class ColorARGB { public: typedef unsigned char channel; channel a, r, g, b; ColorARGB(channel alpha, channel red, channel green, channel blue); ColorARGB(float alpha, float red, float green, float blue); }; .cpp: #include "ColorARGB.h" #include "stdafx.h" typedef unsigned char channel; channel a, r, g, b; ColorARGB::ColorARGB(channel alpha, channel red, channel green, channel blue) { a = alpha; r = red; g = green; b = blue; } ColorARGB::ColorARGB(float alpha, float red, float green, float blue) { }