identifier is undefined in ATL\WTL application

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?

Upvotes: 3

Views: 1011

Answers (1)

Mark Ransom
Mark Ransom

Reputation: 308158

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

Upvotes: 3

Related Questions