Jump to content

  • Log In with Google      Sign In   
  • Create Account


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 ender012345   Members   -  Reputation: 122

Like
0Likes
Like

Posted 28 February 2008 - 10:42 PM

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?

Sponsor:

#2 Oluseyi   Staff Emeritus   -  Reputation: 1670

Like
0Likes
Like

Posted 28 February 2008 - 10:48 PM

It's in the Windows Platform SDK.

#3 ender012345   Members   -  Reputation: 122

Like
0Likes
Like

Posted 29 February 2008 - 10:14 AM

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?

#4 Oluseyi   Staff Emeritus   -  Reputation: 1670

Like
0Likes
Like

Posted 29 February 2008 - 12:02 PM

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.

#5 SiCrane   Moderators   -  Reputation: 9124

Like
0Likes
Like

Posted 29 February 2008 - 12:10 PM

It should be in \Microsoft Platform SDK for Windows Server 2003 R2\Include\atl\.

#6 MJP   Moderators   -  Reputation: 8752

Like
0Likes
Like

Posted 29 February 2008 - 12:21 PM

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.

#7 ender012345   Members   -  Reputation: 122

Like
0Likes
Like

Posted 01 March 2008 - 07:45 AM

Found the file. It works now that I changed it under directories from ../include to ../include/atl




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS