Results 1 to 6 of 6

Thread: API function

  1. #1
    I'm curious Vlatko, why when you include code for VC++, you never include the api functions? Is it already built-in or something?

  2. #2
    I think their included in windows.h.

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Actually, you need:
    • A header file.
    • A library file.

    For #1, you do this:
    #include <windows.h>
    For #2: Visual C++ automatically includes all the most common libraries for you. (User32.lib, GDI32.lib, etc.)
    If it's not a common library, you'll have to add it manually.

  4. #4
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Skopje, Macedonia
    Well I a not an expert in C++ but i know (As Yonatan said) that the most commonly used api functions don't have to be declared in some header files(you need only windows.h). There are some that need header files.(very rare)

    [Edited by Vlatko on 10-14-2000 at 05:35 AM]
    I am become death, the destroyer of worlds.

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

  5. #5
    The most common ones though, they are in the Windows.h. There some exceptions in which you would have to include different ones, ie: directx.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Mashin' on the motorway
    I think the multimedia stuff comes under a different header (mmsys.h).
    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

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