Wtf?!

This is a discussion on Wtf?! within the C++ Programming forums, part of the General Programming Boards category; OK, I decided to try VC++ and it's made by Microsoft, correct (I know, stupid question)? Well, I #include`d <windows.h> ...

  1. #1

    Join Date
    Jan 2006
    Posts
    28

    Wtf?!

    OK, I decided to try VC++ and it's made by Microsoft, correct (I know, stupid question)? Well, I #include`d <windows.h> and it doesn't even have it! Microsoft doesn't even include their own include file for the Windows OS! Dev-Cpp has a ton
    Can anyone give me a link to the download pack for these?
    Last edited by Dark~Cloud; 01-16-2006 at 11:22 AM.

  2. #2

    Join Date
    Jan 2006
    Posts
    28
    Please?

  3. #3
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Actually it does have it. I've used version 5, 6 and 2003 - they all have it. Check your include directory. Failing that there may be something wrong with your installation.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  4. #4
    Registered User Bag a Bones's Avatar
    Join Date
    Dec 2005
    Posts
    15
    Try reinstalling it. My Visual Studios was messed up on the first installation so i just reinstalled it and it worked perfectly. You could have just not used propper syntax though... lol

  5. #5
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    Yeah, mine has it too, either way

    http://faq.cprogramming.com/cgi-bin/...&id=1043284385


    you sure you're using it right??

  6. #6
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503
    Are you using the new c++ 2005 express edition? It does not include window headers. You will need to download the platform sdk

  7. #7
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    I had that problem too. Down load the Platform SDK which gives you acsess to Microsdoft Windows headers. It is a pain I know. Think I cannot work out is why DevC++ has windows.h and MSVC++2005 didn't!

  8. #8

    Join Date
    Jan 2006
    Posts
    28
    Yes, VC++ 2005.
    And it's made by Microsoft too!!!
    Forget it... I hate VC, and I can't find 6.0...
    I'll stick to Dev-Cpp
    Last edited by Dark~Cloud; 01-16-2006 at 04:21 PM.

  9. #9
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Good heavens! If you give up that easily on a problem, how will you ever be an effective programmer?

    Microsoft decided to separate the compiler and related tools, and the Win32 platform SDK. Why?
    1) Because they are no dependency of each other. You can use VC++ to develop POSIX applications, and thanks to the Unix Tools for Windows, you might even get them to run. Or you could develop straight C++ standard applications.
    2) Because they have different update cycles. In the time I've had VC++2003, the SDK was updated 2 times, I think. Every time I had to install the new version anyway. If MS bundled the SDK and VC++Express, they'd either have to update the bundle and installer every time they released a new SDK version, or have the user download an outdated SDK, just so that they have to download the new one anyway.

    It's a good decision to do it this way.

    So why, then, does Dev-C++ come bundled with the SDK? Because you can't use the MS one. Dev-C++'s compiler, MinGW GCC, doesn't understand some of the VC++-specific directives in the MS SDK, and couldn't work with it. For this reason, the developers of MinGW maintain their own version of the MS SDK, and it comes bundled with their GCC, since otherwise you might install the MS version. Also, the update cycle is different. VC++ had new versions in 1998 (6.0), 2002 (7.0), 2003 (7.1) and 2005 (8.0). Dev-C++ had 10 releases between March 2003 and February 2005. Dev-C++ is released more often than the platform SDK, which is why they can rather easily bundle an up-to-date SDK with up-to-date versions.
    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

  10. #10
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503
    Another reason imho why MS didn't include it is because they are pushing their net framework. If you want to code in managed c++, then the c++ express has everything you need for most of your applications...

  11. #11
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Forget it... I hate VC, and I can't find 6.0...
    You better don't continue down the VC path with that attitude. It's like C++, not easy, but damn powerful. If you give up on this little problem, you are not fit for VC.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  12. #12
    Registered User
    Join Date
    Mar 2002
    Posts
    203

  13. #13

    Join Date
    Jan 2006
    Posts
    28
    I still like Dev-Cpp
    I have been working on my own server software, I think that I can stick to hard things.
    And VC gets too many errors, no matter how simple the program is.
    I once tried compiling this is VC:
    Code:
    #include <stdio.h>
    int main()
    {
    printf( "Helllo, world!\n" );
    getchar();
    }
    And it said that printf isn't a function even when stdio.h is included.
    Oh, and I also tried compiling a C++ version of the same code (C++alized) and I got the same error about cout.
    Last edited by Dark~Cloud; 01-17-2006 at 02:40 PM.

  14. #14
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    I tried to compile a similar program with Dev-C++ once; it didn't even start the compiler correctly.

    Where does that lead us? "I once did XYZ with Product and it didn't work; Product sucks."
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Neck bomb kills Pizza man. WTF?
    By Govtcheez in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 09-03-2003, 07:40 PM
  2. no... wtf!!!?? ( Global class is 'undeclared' )
    By knave in forum C++ Programming
    Replies: 5
    Last Post: 05-10-2003, 05:41 PM
  3. wtf is wrong with msdn
    By Shadow12345 in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 09-29-2002, 05:59 PM
  4. Wtf??? 7/9*9 = 0???
    By Tyrael in forum C++ Programming
    Replies: 2
    Last Post: 11-13-2001, 09:41 PM

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