none
Cannot include "stdafx.h"

    שאלה

  • Greetings,

    I started a blank project but when I tried to add include "stdafx.h" an error occurs.

    "IntelliSense: cannot open source file "stdafx.h"

    What might be the cause and how to solve it?

    יום ראשון 21 אוקטובר 2012 20:22

תשובות

  • I started a blank project but when I tried to add include "stdafx.h" an error occurs.

    "IntelliSense: cannot open source file "stdafx.h"

    What might be the cause and how to solve it?


    The cause should be obvious: trying to #include a
    file that doesn't exist.

    The solution should be equally obvious: either create
    the file or turn off precompiled headers for the
    project and don't try to include it.

    If you started by using the Empty Project template
    then that file won't be created automatically. If you
    start with the Win32 Console Application template then
    it will be created automatically.

    - Wayne



    יום ראשון 21 אוקטובר 2012 20:48