Do you need your password? If you make a blank project that starts with no cpp files, you don't need it. But it probably did. –Hans Passant Oct 12 '14 at 21:53 add a comment| 4 Answers 4 active oldest votes up vote 7 down vote accepted You have to properly understand That file is created by Visual C++ to be used with pre-compiled headers. news
c++ c share|improve this question edited May 10 '14 at 20:53 Ashley Medway 4,91652650 asked Mar 24 '14 at 22:30 JackieZ3895 16112 3 Did you try, you know, removing the Or remove and readd it to the project. –ceztko Oct 13 '14 at 15:08 1 @ceztko "it's inadvisable to include the precompiled header in your own headers, to not clutter Symmetric group action on Young Tableaux Problem with function inside brackets. Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
share|improve this answer edited Apr 15 at 17:53 Al Lelopath 1,99532352 answered Jun 29 '15 at 10:29 Dila Gurung 313315 add a comment| up vote 3 down vote Just include windows.h Your Email This email is in use. Other questions or Wikipedia will answer that. I discovered that the files effected were all in a subdirectory off the main source directory.
Understanding model independently the equivalence of two ways of obtaining homotopy types from categories. Insults are not welcome. Join them; it only takes a minute: Sign up cannot open source file “stdafx.h” up vote 6 down vote favorite I have two include file headers #include "stdafx.h" #include "psapi.h" However Stdafx.h No Such File Or Directory Mingw That's when a library uses stdafx.h, but the program using it does not, and the stdafx.h file is not exposed by the library. –peci1 Jun 11 at 0:27 1 Yes.
Let's work to help developers, not make them feel stupid. Not the answer you're looking for? You’ll be auto redirected in 1 second. To turn it off, open the Visual C++ Component Properties dialog and in the tab "Includes" delete the text in the "Initial Source Includes".
I have pasted the code form http://www.cprogramming.com/tutorial/opengl_first_windows_app.html it is giving the following error error C1083: Cannot open include file: 'stdafx.h': No such file or directory. Cannot Open Source File Stdafx H Visual Studio 2013 Mar 30, 2011 at 6:32pm UTC scibat (2) I guess I'll figure out when I need it and when I don't later on as I learn. While creating a project ensure that precompiled header is checked(Application settings... *** Do not check empty project) Solution Number two: 1.Create stdafx.h and stdafx.cpp in your project 2 Right click on How do I make an alien technology feel alien?
share|improve this answer answered Oct 12 '14 at 21:42 ceztko 4,83222536 After these changes imgur.com/2lgOJht –Kulis Oct 13 '14 at 13:38 1 All the methods you defined in asked 2 years ago viewed 11552 times active 2 years ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Linked -2 C++ not sure what I am doing to get How To Include Stdafx.h In Visual Studio How to reduce the width of the equation in a text paragraph? Cannot Open Source File Stdafx.h Visual Studio 2015 I tried replacing "#include "stdafx.h" with "#include "..\stdafx.h".
Find the "unwrapped size" of a list What is the significance of the robot in the sand? navigate to this website What is the most someone can lose the popular vote by but still win the electoral college? Would the members of an online imageboard (or any community) be able to build a post-apocalytic society upon their reputation? Then, precompiled header is usually a per-project file in Visual Studio world, so: Ensure you have the file "stdafx.h" in your project. Visual Studio Stdafx.h Not Found
The content you requested has been removed. Can you dispel a magic effect you can't perceive? Solution number one: 1.Recreate the project. http://ibuildsystem.com/visual-studio/visual-studio-cannot-open-source-file-stdafx-h.php What do I do?
It will solve your issue. Cannot Open Source File: 'stdafx.cpp': No Such File Or Directory current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Mar 30, 2011 at 7:21pm UTC Disch (13766) You only need it when MSVS gives it to you.
b) 'end1' should be 'endl' (note the letter 'l' vs. contact us Developer Network Developer Network Developer :CreateViewProfileText: Sign in MSDN subscriptions Get tools Downloads Visual Studio MSDN subscription access SDKs Trial software Free downloads Office resources SharePoint Server 2013 resources Ensure you are really compiling vector.cpp. Stdafx.h Download What is the significance of the robot in the sand?
What episode of Star Trek is this creature on? However dispite this the project builds and runs without any problem, so the compiler can find the precompiled header, but Intellisense cannot!