in c++, just #include "windows.h" is enough, because that will set up the whole api for you:

Code:
#include <iostream>
#include "windows.h"

using namespace std;

void main() {
    long lMyNum = GetTickCount(); // use API function
    cout << "Count: " << lMyNum << endl;
}