Visual C++ 2010 problem.

This is a discussion on Visual C++ 2010 problem. within the C++ Programming forums, part of the General Programming Boards category; You never know what stuff the standard headers might include. But it does not matter either. You included the correct ...

  1. #16
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,659
    You never know what stuff the standard headers might include. But it does not matter either. You included the correct header to use what you needed, and that's all we really need to know.
    Different implementations of the standard library might have a different include pattern.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #17
    Registered User
    Join Date
    May 2010
    Posts
    62
    Quote Originally Posted by Elysia View Post
    You never know what stuff the standard headers might include. But it does not matter either. You included the correct header to use what you needed, and that's all we really need to know.
    Different implementations of the standard library might have a different include pattern.
    Ok, I thought it might had something to do with the size of the executable file after building it if there where more header files included.

  3. #18
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,659
    The size of your executable depends largely on the fact that's it's a debug build. It contains a lot of debug information / code and isn't really optimized.
    When you ship your program to someone else, you choose a Release build. It will be much smaller, I assure you.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #19
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    But Microsoft does not ship debug information for system files such as ntdll.dll.
    They do supply basic information that allows you to get correct stack traces through their DLLs. You just have to add their official debug information server to your list.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #20
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,659
    Indeed they do. I sort of avoided mentioning that. But you're right. However, they don't ship with VS nor the OS. You'll have to download the debug symbols either from a symbol server or manually from MS's servers.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #21
    Registered User
    Join Date
    May 2010
    Posts
    62
    Quote Originally Posted by Elysia View Post
    The size of your executable depends largely on the fact that's it's a debug build. It contains a lot of debug information / code and isn't really optimized.
    When you ship your program to someone else, you choose a Release build. It will be much smaller, I assure you.
    Quote Originally Posted by CornedBee View Post
    They do supply basic information that allows you to get correct stack traces through their DLLs. You just have to add their official debug information server to your list.
    To the both of you. Could you explain how it is done what you mentioned?

    I know I am probably becoming a pain in the ass with all my stupid questions but yeah, trying to learn hey....

  7. #22
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,659
    Tools -> Options -> Debugging -> Symbols.
    Select Microsoft's symbol server. Select local cache. Tinker with the settings, if you will.
    Then select OK.

    The IDE will not download debug info for Microsoft DLLs (may take some time to download, though).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Visual Studio 2010 coming for Mac OS X
    By DavidP in forum General Discussions
    Replies: 5
    Last Post: 05-26-2011, 09:49 AM
  2. Visual Studio 2010 Express vs 2005 Standard
    By micahharwell in forum Windows Programming
    Replies: 6
    Last Post: 06-13-2010, 07:45 AM
  3. Visual studio.net C++ Problem
    By Dina in forum C Programming
    Replies: 5
    Last Post: 07-19-2008, 02:34 PM
  4. errors in my class....
    By o0obruceleeo0o in forum C++ Programming
    Replies: 9
    Last Post: 04-14-2003, 03:22 AM
  5. Visual Basic Adodc Problem
    By rahat in forum Windows Programming
    Replies: 1
    Last Post: 01-20-2002, 05:55 AM

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