|
-
Oct 13th, 2000, 06:45 PM
#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?
-
Oct 13th, 2000, 07:32 PM
#2
I think their included in windows.h.
-
Oct 13th, 2000, 08:40 PM
#3
Guru
Actually, you need:
- A header file.
- A library file.
For #1, you do this:
Code:
#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.
-
Oct 14th, 2000, 04:15 AM
#4
Frenzied Member
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]
-
Oct 14th, 2000, 08:45 AM
#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.
-
Oct 14th, 2000, 08:53 AM
#6
Monday Morning Lunatic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|