Include the tlhelp32 header file - c++

I need to include the tlhelp32.h header file from the Tool Help Library but it always comes up with the following error:
error C1083: Cannot open include file: 'tlhelp32.h': No such file or
directory
I did a little bit of research and tried to first include the windows.h header file but this did not change anything.
I'm coding in C++ using Visual Studio 2013 Express with Windows 10 1709. Do I have to download anything else?

Related

How to reference header files in visual studio 2017 project

I have downloaded and tried to build The oxygine engine project with VS 2017 Community. The stringutils.cpp file from it gives me the following when I try to compile:
C1083: Cannot open include file: 'SDL_stdinc.h': No such file or directory
hovering the #include statement it says cannot open source file 'SDL_stdinc.h'
I checked
Properties->C/C++->General->Additional Include Directories
and it references the path the header files are in. I have even added another path representing the absolute path. I tried a different folder, a different download of the header files, all to no avail.
What do I need to do to get this right?
Is there any reason for a header to not work? (version mismatch or something)
Is a header not working if the corresponding dll or lib is missing?
If so, how do I know it is found by VS?
The problem was the path for oxygine in the oxigine project properties was setup like this ..\..\..\..\SDL\include\ but had to be setup like that ..\..\SDL\include\

Error C1083: Cannot open include file: 'stdafx.h', but it should?

#include <stdafx.h>
i checked error C1083: Cannot open include file: 'stdafx.h': No such file or directory in VS 2005
but it still didn't help. im using precompiled headers. Usually i start out with a template ive saved for myself. that has all the headers i like, and in the past the include has worked. Also i would attach code, but its not allowing me to access it on any proj at all. even a simple hello world.
Try #include "stdafx.h".
This will change the way the compiler looks for the header - namely, it will check the local directory.
Here is the SO question for further reference.

Cant find the header when I linka .lib in visual studio 2012

so im trying to link the 32 bit GLFW.lib and I placed it on my desktop and did this:
http://s1.postimg.org/40q6d5367/Untitled.png
and made sure to include #include <GL/glfw.h>
but it just gives me this everytime
Error 1 error C1083: Cannot open include file: 'GL/glfw.h': No such file or directory
There should be the include file that comes with the library itself, i.e. the gl/glfw.h (together with a bunch of other gl/gl...h files probably).
This file (these files) needs to be placed somewhere where the compiler can find it when it encounters an #include statement, i.e. in one of the directories listed under INCLUDE in the project or compiler settings, e.g. under Tools / Options / Projects and Settings / VC++ Directories / Include files (see here)

Fatal Error C1083 While using sparsehash library

Hi I am using google sparsehash library. When i compile the code (Visual Studio 2005)it gives following error...
fatal error C1083: Cannot open include file: 'sparsehash/sparse_hash_map': No such file or directory
What is the reason behind this problem and what is its solution.
Thanks in advance...
Make sure you installed https://code.google.com/p/sparsehash/ and your makefile correctly updated to include header file from this sparsehash i.e. something like
-I ./sparsehash/include
In case of Visual Studio make sure your project setting refer to path where file is located.

Why can't I compile this opensource project

I downloaded the source code from http://construct.svn.sourceforge.net/viewvc/construct/ using tar ball http://construct.svn.sourceforge.net/viewvc/construct/?view=tar
There is a visual studio solution file in IDE subdir I converted in VS2010. When compiling I got 56 Errors like
Error 1 error C1083: Cannot open include file: 'd3dx9.h': No such file or directory C:...\construct\construct\ide\stdafx.h 106 1 Construct
Why? How to fix?
Most likely you either don't have DirectX SDK installed and/or include directories for project (or global settings in VS) are not properly set.
Does this help: Cannot open include file "d3dx9.h"