Thread: C Header Files

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    36

    C Header Files

    Hi,


    When compiling C programs I face problems because of certain Header files which are not included in my Turbo C folder. For example, Windows.h is not there.

    Here's the list of the header files installed in my TC folder:

    -----------------------------------------------
    Sr. No. TC Header Files
    -----------------------------------------------
    1 C:\TC\INCLUDE\ALLOC.H
    2 C:\TC\INCLUDE\ASSERT.H
    3 C:\TC\INCLUDE\BIOS.H
    4 C:\TC\INCLUDE\CONIO.H
    5 C:\TC\INCLUDE\CTYPE.H
    6 C:\TC\INCLUDE\DIR.H
    7 C:\TC\INCLUDE\DOS.H
    8 C:\TC\INCLUDE\ERRNO.H
    9 C:\TC\INCLUDE\FCNTL.H
    10 C:\TC\INCLUDE\FLOAT.H
    11 C:\TC\INCLUDE\GRAPHICS.H
    12 C:\TC\INCLUDE\IO.H
    13 C:\TC\INCLUDE\LIMITS.H
    14 C:\TC\INCLUDE\MATH.H
    15 C:\TC\INCLUDE\MEM.H
    16 C:\TC\INCLUDE\PROCESS.H
    17 C:\TC\INCLUDE\SETJMP.H
    18 C:\TC\INCLUDE\SHARE.H
    19 C:\TC\INCLUDE\SIGNAL.H
    20 C:\TC\INCLUDE\STDARG.H
    21 C:\TC\INCLUDE\STDDEF.H
    22 C:\TC\INCLUDE\STDIO.H
    23 C:\TC\INCLUDE\STDLIB.H
    24 C:\TC\INCLUDE\STRING.H
    25 C:\TC\INCLUDE\TIME.H
    26 C:\TC\INCLUDE\VALUES.H
    27 C:\TC\INCLUDE\createF.h

    ---------------------------------
    C:\TC\INCLUDE\SYS\
    ---------------------------------

    28 C:\TC\INCLUDE\SYS\STAT.H
    29 C:\TC\INCLUDE\SYS\TIMEB.H
    30 C:\TC\INCLUDE\SYS\TYPES.H
    -----------------------------------------------


    Can anybody tell me where can I get all the header files (for free download) or can anybody share them with me?


    Thanks in advance!

    Dev.

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Looks like you are ready to go to town programming on DOS!!
    Mainframe assembler programmer by trade. C coder when I can.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    The header file windows.h and the ones that it includes in itself are available in compilers that actually support WINDOWS - which Turbo C doesn't.

    You may want to get a compiler that is a bit newer than 15 years old - perhaps a Free Download of Microsoft Visual Studio 2008 Express Edition, for example - but it may shock your system, perhaps?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    36

    Lightbulb Writing C Programs under VC++ IDE

    Hi Mats,


    I have got MS VS Express 2005 & 2008 Edtions and installing any of them won't shock my system because I keep it updated to meet my requirements.

    Well, is it safe to write C programs using Visual C++ (VS Express Edition 2005 / 2008)?

    Thanks!

    Quote Originally Posted by matsp View Post
    The header file windows.h and the ones that it includes in itself are available in compilers that actually support WINDOWS - which Turbo C doesn't.

    You may want to get a compiler that is a bit newer than 15 years old - perhaps a Free Download of Microsoft Visual Studio 2008 Express Edition, for example - but it may shock your system, perhaps?

    --
    Mats

  5. #5
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Yes, unless you do it in the middle of the street, at night, with your laptop.
    Mainframe assembler programmer by trade. C coder when I can.

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Dino, you haven't been taking your anti-sarcasm medication - which reminds me, I need mine soon!

    Yes, it's fine - just make the filenames end with .c instead of .cpp, and it will be compiled as C rather than C++.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #7
    Registered User
    Join Date
    Dec 2008
    Posts
    36

    Thumbs up MS Visual Studio Express 2008 Edition for Writing C Programs

    Thanks Mats!

    I am at my company office right now. But when I go back to my room, I am going to install MS Visual Studio Express 2008 Edition!

    I have one more question which I am going to write in a different post.

    Thanks again!

    Dev.


    Quote Originally Posted by matsp View Post
    Dino, you haven't been taking your anti-sarcasm medication - which reminds me, I need mine soon!

    Yes, it's fine - just make the filenames end with .c instead of .cpp, and it will be compiled as C rather than C++.

    --
    Mats

  8. #8
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Quote Originally Posted by matsp View Post
    Dino, you haven't been taking your anti-sarcasm medication - which reminds me, I need mine soon!

    Mats
    Yeah. Here's the way I see it.

    On some forums, you just gets answers.

    Other forums, you just get sarcasm.

    Here, one will most always get a quick answer, and the payment is they have to be prepared for a little sarcasm, lest it gets too boring otherwise.

    I mean, if there was no sarcasm, I wouldn't have a signature.
    Mainframe assembler programmer by trade. C coder when I can.

  9. #9
    Registered User
    Join Date
    Dec 2008
    Posts
    36
    Hi Dino,


    I have got a sense of humour so even sarcasm makes a great sense to me!

    Thanks a lot to you guys! I hope I will find solutions of my problems that I may encounter when writing programs in C and C++.

    Have a great time!

    Dev.


    Quote Originally Posted by Dino View Post
    Yeah. Here's the way I see it.

    On some forums, you just gets answers.

    Other forums, you just get sarcasm.

    Here, one will most always get a quick answer, and the payment is they have to be prepared for a little sarcasm, lest it gets too boring otherwise.

    I mean, if there was no sarcasm, I wouldn't have a signature.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. #include header files or .cpp files?
    By DoctorX in forum C++ Programming
    Replies: 3
    Last Post: 12-23-2006, 12:21 PM
  3. classes and header files
    By Drake in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2006, 07:12 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM

Tags for this Thread