I'm new to C++ and I just got Visual Studio Community 2017. I don't quite know what workflow to use, so I went with my gut.
When I try to include windows.h
using #include <windows.h>
, I get a squiggly line underneath, and when I hover over, it says
cannot open source file "windows.h"
This is the same with conio.h
and stdio.h
.
I seem to have found the issue
Click Project (top)
Click properties (bottom)
Under configuration properties, Click General
Under general, click windows SDK version. If it is at 10.x
put it to 8.1
then close then put it back to 10.x
again.
Seemed to work for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With