[UPDATE]
Ok can some one help me get this code working im using Dev-C++ and windows XP
Code:#include <iostream.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
DWORD color = GetPixel(hdc, x, y);
unsigned int r = GetRValue(color);
unsigned int g = GetGValue(color);
unsigned int b = GetBValue(color);
cout << "red: " << r << endl;
cout << "green: " << g << endl;
cout << "blue: " << b << endl;
system("pause");
return 0;
}