3

I've created new ATL\WTL project in Visual Studio 2010.

I've got red lines under CAppModule,CMessageLoop and etc. with error

identifier is undefined

How can this be solved?

p.campbell
  • 98,673
  • 67
  • 256
  • 322

1 Answers1

3

You need to include the proper headers. For example CAppModule is defined in atlapp.h so you need #include <atlapp.h>.

Mark Ransom
  • 299,747
  • 42
  • 398
  • 622
  • 1
    You should mention that `` is part of the Windows Template Library. I had to go open 20+ search terms just to find out about this. I'm a noobie at WTL/ATL by the way. – tom_mai78101 Oct 02 '12 at 14:49
  • @tom_mai78101, sorry I just assumed that anyone working on a WTL app would have the headers available. – Mark Ransom Oct 02 '12 at 15:20