|
-
Oct 19th, 2001, 09:39 AM
#1
Thread Starter
Hyperactive Member
Header files
for a starter is there an easy way
of telling which header file(s) to add
when u need to use a particluar function
i am using Visual C++ to write a C++ code.
-
Oct 19th, 2001, 09:49 AM
#2
Usually the MSDN doc set on the disk that came VC++ tells you how to link it and what includes are needed.
For example - if you reference calloc() you have to include malloc.h
And, frequently, a lot of related functions are grouped together - in one header file - as in string functions, math functions, etc.
Other functions may be referenced in several different header files -- sprintf() is an example of that
-
Oct 19th, 2001, 02:44 PM
#3
If it's a windows program, all the main functions and structures are stored in windows.h.
-
Oct 20th, 2001, 09:41 AM
#4
Frenzied Member
Well they are not actually stored in windows.h. When including windows.h a lot of other header files are actually included. That is why there are macros like WIN32_LEAN_AND_MEAN.
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
|