Re: Problems with CString (Conversion from VC6 to VC2005)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Compare your stdafx.h file to the stdafx.h created by a new project in
VC2005

Rail
--
Recording Engineer/Software Developer
Rail Jon Rogut Software
http://www.railjonrogut.com
mailto:rail@xxxxxxxxxxxxxxxx

"Matthias Meier" <ichwarteaufmail@xxxxxxxx> wrote in message
news:1138376386.641366.270770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> I have converted a project from VC6.0 to VC2005 (MFC). Now I have a
> compiling problem. Following error:
>
> error C2079: 'myString' uses undefined class 'CString'.
>
> CString should now be a template in place of a class.
>
> By another project theres is a forward declaration of 'class CString'.
> I get the following message:
>
> error C2371: 'CString' : redefinition; different basic types
>
> Thats an indication for the template, but what do I have to do to
> compile my project again.
>
> Regards,
>
> Matthias
>


.