atlbase.h not found when using Visual C++ Express 2010

后端 未结 4 690
感动是毒
感动是毒 2020-12-17 16:20

So I tried moving my project to Visual C++ Express 2010 on Windows 7 from a previous version on Windows XP. I got all sorts of errors where atlbase.h was not found. This i

相关标签:
4条回答
  • 2020-12-17 17:03

    this is probably because the previous version that you were using was visual c++ 6.0 and that doesn't support it

    0 讨论(0)
  • 2020-12-17 17:11

    ATM, it seems to be non-free.

    SDK v7.0 Samples -- no atlbase.h

    0 讨论(0)
  • 2020-12-17 17:20

    ATL and MFC were not included into free Express versions of Visual Studio. This is the primary reason behind the problems locating the include file. ATL still is is part WDK. If you have ATL isntalled with a previous version of VS, or with WDK, you need to go to project setting an update your includ directories respectively, so that ATL *.h files are picked up. See post below for more details and discussion.

    • How to add WTL and ATL to visual studio c++ express 2008
    • Why were MFC, ATL and masm not included in VC++ Express?
    • Please include ATL to VC++2010 Express or Windows SDK
    0 讨论(0)
  • 2020-12-17 17:23

    There is now an ATL-inspired WRL library for the Windows Runtime that apparently supports building Classic COM objects (see http://msdn.microsoft.com/en-us/library/jj822931.aspx). It is included in Express but I haven't tried it.

    Even though ATL 7.1 is in WDK 7.1 it's quite annoying to set up so please consider voting to bring back ATL to VS Express ;) https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3252947-add-atl-to-visual-studio-2010-express-for-desktop

    0 讨论(0)
提交回复
热议问题