Hi all,
Just converted our 95 project workspace file from VC++
6.0 to .NET, and things have gone...um...pretty well.
Down to the last of the suffering - our main server
application is doing something completely bizarre when
compiling. All of our applications use MFC, and this one
in particular is a console application - however, we have
lots more that are console applications where CStrings
work fine.
One thing that seems consistant: if we have a template
defined in the .H file where a CString is defined, those
CStrings seem to throw this error when we try to compile
them:
error C2079: 'csKey' uses undefinded class CString
It's almost like something is getting whacked after the
compiler sees a template, because we replaced every
CString definition (that's in the same file as a template
usage) with this:
CStringT< TCHAR, StrTraitMFC< TCHAR > >
And then it compiles fine.
I've been reading a lot that a CString is now a
template'd class, but I'm still not sure how to resolve
this issue. We're trying to narrow it down to exactly
what's different between this and our other projects, but
it's quite painful.
Thanks for any help or avenues anyone can provide.