Click to See Complete Forum and Search --> : Header files
bell
Oct 19th, 2001, 09:39 AM
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.
jim mcnamara
Oct 19th, 2001, 09:49 AM
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
Megatron
Oct 19th, 2001, 02:44 PM
If it's a windows program, all the main functions and structures are stored in windows.h.
Vlatko
Oct 20th, 2001, 09:41 AM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.