I'm curious Vlatko, why when you include code for VC++, you never include the api functions? Is it already built-in or something?
Printable View
I'm curious Vlatko, why when you include code for VC++, you never include the api functions? Is it already built-in or something?
I think their included in windows.h.
Actually, you need:
- A header file.
- A library file.
For #1, you do this:
For #2: Visual C++ automatically includes all the most common libraries for you. (User32.lib, GDI32.lib, etc.)Code:#include <windows.h>
If it's not a common library, you'll have to add it manually. :rolleyes:
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]
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.
I think the multimedia stuff comes under a different header (mmsys.h).