|
-
Jun 23rd, 2000, 05:22 PM
#1
Thread Starter
Hyperactive Member
API Declarations
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
-
Jun 23rd, 2000, 05:40 PM
#2
Monday Morning Lunatic
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;
}
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jun 23rd, 2000, 05:45 PM
#3
Thread Starter
Hyperactive Member
Thanks
Thanks a lot Parksie! Wow, thats even easier than in VB!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|