C++ #include atlbase.h is not found
Microsoft ATL (Active Template Library), which includes the header atlbase.h
is included with the Windows 2003 SDK, but it is not included with any newer Windows SDK release. It is also included with Professional editions of Visual Studio.
Fatal Error C1083: Cannot open include file: 'atlbase.h' Pyinsane package
I know this question got asked in quite similar ways many times before, but none of them were about the pyinsane Package or the atlbase.h.
Had you really searched the solution? The first search attempt in Google results the first link to C++ #include <atlbase.h> is not found
When running the Visual Studio Installer, select the Individual components tab, and under SDKs, libraries, and frameworks make sure Visual C++ ATL Support is selected.
Cannot open include file: 'atlbase.h': No such file or directory
For me these files are located here:
VS2010 - C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\atlbase.h
VS2008 - C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlbase.h
Please note ATL is part of Microsoft Visual Studio (but not the Express Edition).
If you need get ATL for Express please take a look at this topic How to add WTL and ATL to visual studio c++ express 2008
I don't think copying atlbase.h
and atlcom.h
will help you.
You might try to get all atl*.h files and install required Microsoft Visual C++ Redistributable package.
How to properly include atlbase.h
::CreateFile
is defined in WinBase.h
. So you should #include WinBase.h
or Windows.h
before you include atlbase.h.
I can't tell for sure why this is not done in atlbase.h itself. But you can define what Windows header files are used in your project.
ATLBase Include Doesn't Work
There is no ATL in VS Express Edition.
http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express
Visual C++ Express
The Visual C++ Express Edition can be used to compile .NET as well as
Win32 applications. The Windows Platform SDK compilers and core files
are included which can be used to build applications that use the
Win32 API. To build applications using either MFC or ATL, the
libraries have to be obtained from alternative sources such as the
free-to-download Windows Driver Kit.
Related Topics
Reading and Writing to the Same File Using the Same Fstream
Bjarne Stroustrup Says We Must Avoid Linked Lists
Repeated Multiple Definition Errors from Including Same Header in Multiple Cpps
Is It Legal to Compare Dangling Pointers
Template Within Template: Why "'>>' Should Be '> >' Within a Nested Template Argument List"
Std::List<>::Sort()' - Why the Sudden Switch to Top-Down Strategy
Function Overloading Based on Value VS. Const Reference
Tell Cin to Stop Reading at Newline
Why Is Protected Constructor Raising an Error This This Code
Declaring Multiple Object Pointers on One Line Causes Compiler Error
Why Are Redundant Scope Qualifications Supported by the Compiler, and Is It Legal
Dereferencing an Invalid Pointer, Then Taking the Address of the Result
Turn Off Eclipse Errors (That Aren't Really Errors)
Nonfree Module Is Missing in Opencv 3.0
Why Do We Need to Use Boost::Asio::Io_Service::Work
How to Access a Local Variable in Outer Scope in C++
C++ Error: Undefined Reference to 'Main'
Which Standard Wording Tells Us That Ref-To-Const Temporary Lifetime Extension Only "Works Once"