Thread: Viewing header files in MS VC++

  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
    28,413
    On my system, they are in "C:\Program Files\Microsoft Visual Studio 8\VC\include". Perhaps this is the same for you.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    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,817
    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, 03:42 AM
  2. C Header Files
    By devarishi in forum C Programming
    Replies: 8
    Last Post: 12-10-2008, 04: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