Hi,
I'm investigating how easy/difficult it will be to migrate from Visual C++ v6.0 to .NET.

I tried simply rebuilding one of our projects without modification, but got the WINVER problem. So I fixed that, then tried to build again...

This time, I got CString errors.

I looked up the HELP, and found Q309801 "PRB: Linking Errors When You Import CString-Derived Classes" (http://support.microsoft.com/default...;EN-US;Q309801). This suggests adding the following 2 lines to stdafx.h :-

template class __declspec(dllimport) CStringT<TCHAR, StrTraitMFC<TCHAR, ChTraitsCRT<TCHAR> > >;
template class __declspec(dllimport) CSimpleStringT<TCHAR>;

I added these lines, but I am still getting loads of CString errors in the build, e.g. :-

PeriodEdit.cpp(25) : error C2079: 'CScanString::MyString' uses undefined class 'CString'

(code is - "class CScanString : public CString")

I have looked for ages trying to find related threads with a solution. However, a lot of the relevant threads have been left hanging without a solution.

Does anyone know how to solve this CString problem?
(Is this the right forum for this question?)