PringlesT-rex
PringlesT-rex

Reputation: 1

How to fix Error Code E1696? In Windows Visual Studio 2019

So I recently downloaded Windows Visual Studio 2019. I haven't programmed in a while and I wanted to refresh myself with a basic "hello world" program. But for some reason I'm getting an error with my Stdafx.h header. The error code is E1696 "cannot open source file "stdafx.h"" anyone know how to fix it?

Upvotes: 0

Views: 9918

Answers (1)

eesiraed
eesiraed

Reputation: 4654

The default precompiled header in Visual Studio used to be stdafx.h. Since then, the default name has been changed to pch.h, and later precompiled headers became disabled by default. Simply remove the #include "stdafx.h" or change it to #include "pch.h" depending on your precompiled header settings. If you don't need precompiled headers, you can disable it.

Upvotes: 2

Related Questions