Sign in to follow this  
ender012345

atlbase.h not found, by VC++ or by me....

Recommended Posts

ender012345    122
I'm new to both directx and using visual c++. The tutorial I'm using calls for the use of "atlbase.h" but I get the error: 1>c:\users\dan\documents\visual studio 2008\projects\airplane\airplane\main.cpp(6) : fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory I have the express version of VC++, and I can't find atlbase.h anywhere. Is there another library I need to download? or perhaps and sdk that I don't have?

Share this post


Link to post
Share on other sites
ender012345    122
Ok, I read that the express edition comes with no atlmfc file. I downloaded and installed Microsoft ® Windows Server® 2003 R2 Platform SDK, however I am still getting the exact same error. I've added the include and lib files under directories just as I had to do with directx. What am I not doing?

Share this post


Link to post
Share on other sites
Oluseyi    2103
Is the file on your computer? Do a filesystem search and verify. If not, Microsoft may have deprecated it to the point it is no longer included with the Platform SDK.

Share this post


Link to post
Share on other sites
MJP    19755
ATL and MFC only comes with the paid versions of Visual C++ (Standard and Pro). I'm not sure if the Platform SDK ever included atlbase.h, but it doesn't anymore. Are you trying to use CComPtr? If you are, there's replacements that don't require ATL. For example there's _com_ptr_t (available for VC++ only), or you could work with boost::shared_ptr, or you could probably find some kind of third-party solution.

Also, I'm not sure if you're aware but there are newer versions of the Windows SDK available.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this