Hi everybody,
Does anybody know how to make an API declaration in C++ ? If so, could you please give me an example using the GetTickCount API and printing the result using the Cout method. Thanks
Printable View
Hi everybody,
Does anybody know how to make an API declaration in C++ ? If so, could you please give me an example using the GetTickCount API and printing the result using the Cout method. Thanks
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;
}
Thanks a lot Parksie! Wow, thats even easier than in VB!