Results 1 to 3 of 3

Thread: C and API

  1. #1

    Thread Starter
    Banned
    Join Date
    Feb 2001
    Location
    Back to sh*tland
    Posts
    294
    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...

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    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 */
    }
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Guest
    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
  •  



Click Here to Expand Forum to Full Width