Hi.
I wrote a small programm which shows me display's refresh rate
#include "stdafx.h"
#include "windows.h"
#include "iostream"
using namespace std;
int _tmain(int cout)
{
HDC hDCScreen = GetDC(NULL);
int RefreshFrequency = GetDeviceCaps(hDCScreen, VREFRESH);
ReleaseDC(NULL, hDCScreen);
std::cout<<RefreshFrequency;
}
I compiled it in VS 2010 (winXP) and it works fine. How to compile the similar code under Linux/freeBSD? What headers should i include?