Everyone: Using a file with the precompiled stdafx.h header in visual C ++ always creates one or the other problem, and you created the βWindows Console Appβ from Visual C ++. The solution to this is to simply create an "Empty Project" and not a pre-compiled Windows console application. After creating an empty project, create the source file. Write business logic and add all the necessary resource and header files. Store external dependency files in the same directory as your source code: for example, C: \ Users \ John \ Documents \ Visual Studio 2010 \ Projects \ xyz.cpp \ xyz.cpp. Finally, add the source file to the global area by adding it to the already created "Empty Project". You can do this by clicking File at the Visual Studio prompt and select the option to add the source file to the project. Thank you and welcome: Ruf Khan
source share