stdafx.h

This is a discussion on stdafx.h within the Windows Programming forums, part of the Platform Specific Boards category; I'm learning Win32 programming, and I'm using some of the examples from this site. When I compile my code an ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    35

    stdafx.h

    I'm learning Win32 programming, and I'm using some of the examples from this site. When I compile my code an error occurs: stdafx.h could not be found. I use MSVS .NET.

    Thanks

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,660
    What examples?

    gg

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    Edit your project settings, and turn off "precompiled headers"
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Jul 2004
    Posts
    35
    Huh? I can't find where to edit my project settings

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    Registered User
    Join Date
    Jul 2004
    Posts
    35
    That's an empty search, but it started me looking. Only thing I found is for MSVS 6.0, though

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    Project->Properties
    Select the C/C++ "Folder" then the Precompiled Headers
    In the right hand side point at "create/use precompiled headers", then from the drop-down list choose "not using precompiled headers"
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  8. #8
    Registered User
    Join Date
    Jul 2004
    Posts
    35
    It's not there: MSVS .NET 2002

  9. #9
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    Sorry, that's 2003
    Welcome to the world of non-standard UI's
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  10. #10
    Registered User
    Join Date
    Jul 2004
    Posts
    35
    Why me?

    Well, if there's a way to turn pre-compiled headers off, or there is adjusted code around I don't really mind

  11. #11
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    Well the option exists for sure, just look for it a bit harder
    Did you actually create a project for example?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. doesn't recognize stdafx.h
    By GiantFurby in forum C++ Programming
    Replies: 4
    Last Post: 03-24-2009, 10:42 AM
  2. stdafx.h and the FreeType library
    By Mastadex in forum Windows Programming
    Replies: 1
    Last Post: 11-23-2007, 12:36 PM
  3. stdafx.h
    By beene in forum Windows Programming
    Replies: 7
    Last Post: 10-15-2006, 10:25 AM
  4. stdafx.h question
    By ssjnamek in forum C++ Programming
    Replies: 5
    Last Post: 08-12-2005, 11:31 PM
  5. stdafx.h?
    By Ranedhel in forum C++ Programming
    Replies: 1
    Last Post: 01-07-2004, 02:28 PM

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