• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 656
  • Last Modified:

CString in WinCE

I have just created a basic app using the app wizard in EVC++ 4.0. I am trying to instantiate a CString based class in that app. When I do that the ": public CString" in the class declaration causes a compile error "error C2504: 'CString' : base class undefined". I have turned on precompiled headers for the class and am using stdafx.h. What could be the problem?
1 Solution
Hi dbthompson,

is it an MFC app? Do you include <afxwin.h> in 'stdafx.h'?

dbthompsonAuthor Commented:
It is an MFC app. But your tip helped me. It did not occur to me that afxwin.h would not automatically be included in stdafx.h. That fixed it. Thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now