fire xzanderr
fire xzanderr

Reputation: 213

Error while including atltime header into WTL project

After I created a plain dialog using the Dialog wizard in WTL - Visual studio 9 I have included the <atltime.h> header and I get this:

Error   2   error C2039: 'CString' : is not a member of 'WTL'   ...\wtl\include\atlctrls.h  5060    TASKSCHEDULER
Error   3   error C2039: 'CString' : is not a member of 'WTL'   ...\wtl\include\atlctrls.h  969 TASKSCHEDULER
Error   4   error C2039: 'CString' : is not a member of 'WTL'   ...\wtl\include\atldlgs.h   535 TASKSCHEDULER
Error   5   error C2039: 'CString' : is not a member of 'WTL'   ...\wtl\include\atldlgs.h   627 TASKSCHEDULER
Error   6   error C2039: 'CString' : is not a member of 'WTL'   ...\wtl\include\atldlgs.h

697 TASKSCHEDULER

Upvotes: 1

Views: 1922

Answers (1)

Roy
Roy

Reputation: 196

I faced similar situation and there were two things helped me get rid of the error, maybe of help to someone else.

  1. include atlstr.h above atlapp.h
  2. define _WTL_NO_CSTRING

Upvotes: 3

Related Questions