Viewing header files in MS VC++

This is a discussion on Viewing header files in MS VC++ within the C Programming forums, part of the General Programming Boards category; Hi, Here is a silly question. But I do not know how to do it. Hence I'm posting it here. ...

  1. #1
    Registered User
    Join Date
    Jun 2007
    Location
    Mysore, India
    Posts
    14

    Viewing header files in MS VC++

    Hi,

    Here is a silly question. But I do not know how to do it. Hence I'm posting it here. I'm using Microsoft's Visual C++ IDE. Supposing I want to view the contents of standard header files, say, stdio.h, string.h, etc.., how do I do that?
    Kindly help me..

    Thanks,
    Babu

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,981
    On my system, they are in "C:\Program Files\Microsoft Visual Studio 8\VC\include". Perhaps this is the same for you.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Jun 2007
    Location
    Mysore, India
    Posts
    14
    Thank you! Its the same as you said

  4. #4
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,789
    A method that I know worked on older IDE versions (dont' know about the newer ones): If you've got a source file you are viewing in the IDE and you wish to know what is in a particular header that the source file uses (<stdio.h> for example), I think you may be able to right-click on the header and select the Open Document <stdio.h> option and the header file contents will open up for viewing within the IDE... just in case you may be doing it the long way like opening up an explorer window and seeking to the directory in question, and then opening up the file in notepad or something like that.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Confusion on header and source files
    By dnguyen1022 in forum C++ Programming
    Replies: 4
    Last Post: 01-17-2009, 02:42 AM
  2. C Header Files
    By devarishi in forum C Programming
    Replies: 8
    Last Post: 12-10-2008, 03:53 PM
  3. add source files to embedded VC 4.0
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 03:28 AM
  4. Using c++ standards
    By subdene in forum C++ Programming
    Replies: 4
    Last Post: 06-06-2002, 09:15 AM
  5. Header files
    By Jez_Master in forum C++ Programming
    Replies: 2
    Last Post: 04-08-2002, 07:56 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21