|
-
Apr 2nd, 2001, 02:00 PM
#1
Thread Starter
Banned
Well, I'm kind of familiar with using API in my VB projects and I was thinking, as I'm learning C now, if it's a good idea to start using API in C. I'm still a beginner in C, of course...
-
Apr 2nd, 2001, 02:07 PM
#2
Frenzied Member
Using API with C++ is not to different from VB. Sometimes you will need to handle pointers in API's, and that is the hardest part of API. Everything else is quite similar to VB.
To start using API you need to include the windows.h header file.
Code:
#include <windows.h>
void main()
{
/* use API functions */
Sleep(2000);
/* and so on */
}
-
Apr 2nd, 2001, 03:58 PM
#3
You will also need to be able to get used to the different data types. (In VB we only used Long, but in C++, we have many others).
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
|