Reputation: 213
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
Reputation: 196
I faced similar situation and there were two things helped me get rid of the error, maybe of help to someone else.
atlstr.h
above atlapp.h
_WTL_NO_CSTRING
Upvotes: 3