Results 1 to 4 of 4

Thread: Header files

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Posts
    335

    Question 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.

  2. #2
    jim mcnamara
    Guest
    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

  3. #3
    Megatron
    Guest
    If it's a windows program, all the main functions and structures are stored in windows.h.

  4. #4
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    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.
    I am become death, the destroyer of worlds.
    mail:[email protected]

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

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