From: Bibi on
Hello! I have a problem with imported project from VC++ 6.0 to .NET
2003.

I get the following compilation error:
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxstr.h(85) : error C2976: 'StrTraitMFC_DLL' :
too few template arguments
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\atlmfc\include\afxstr.h(67) : see declaration of
'StrTraitMFC_DLL'
....
....

The compiler settings are:
/O1 /I "..\UtilClasses\Include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D
"_AFXDLL" /D "_UNICODE" /D "UNICODE" /D "_ATL_DLL" /D "_ATL_MIN_CRT"
/FD /MD /Yu"stdafx.h" /Fp".\ReleaseUMinSize/ModbusServer.pch"
/Fo".\ReleaseUMinSize/" /Fd".\ReleaseUMinSize/" /W3 /nologo /c


I couldn't find any information in the web regarding this problem.
Thank You,
Bibi

From: Mathieu DEGROUX on
Maybe the base template class you use has changed from VC6 to VC 2003.
Check the template arguments of the base template

Bibi a ?crit :
> Hello! I have a problem with imported project from VC++ 6.0 to .NET
> 2003.
>
> I get the following compilation error:
> C:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\atlmfc\include\afxstr.h(85) : error C2976: 'StrTraitMFC_DLL' :
> too few template arguments
> C:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\atlmfc\include\afxstr.h(67) : see declaration of
> 'StrTraitMFC_DLL'
> ...
> ...
>
> The compiler settings are:
> /O1 /I "..\UtilClasses\Include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D
> "_AFXDLL" /D "_UNICODE" /D "UNICODE" /D "_ATL_DLL" /D "_ATL_MIN_CRT"
> /FD /MD /Yu"stdafx.h" /Fp".\ReleaseUMinSize/ModbusServer.pch"
> /Fo".\ReleaseUMinSize/" /Fd".\ReleaseUMinSize/" /W3 /nologo /c
>
>
> I couldn't find any information in the web regarding this problem.
> Thank You,
> Bibi
>
From: Joseph M. Newcomer on
We would need more information about the program. All this indicates is that there is an
error with a string declaration somewhere, but doesn't identify the source line in your
program where it occurred, only the resulting error. CString changed between VS6 and
VS.NET, so there's something wrong with a CString declaration of some sort, It appears to
be in a CArchive::operator << call. The CString class is rather complex in VS.NET, and
StrTraitMFC_DLL seems suspect given you apparently have an ATL_DLL, but I'm not able to
make a lot of sense of the templates. I know this isn't much help, but it suggests some
places you might start looking for something odd.
joe
On 11 Jan 2006 06:09:48 -0800, "Bibi" <aapplee(a)gmail.com> wrote:

>Hello! I have a problem with imported project from VC++ 6.0 to .NET
>2003.
>
>I get the following compilation error:
>C:\Program Files\Microsoft Visual Studio .NET
>2003\Vc7\atlmfc\include\afxstr.h(85) : error C2976: 'StrTraitMFC_DLL' :
>too few template arguments
> C:\Program Files\Microsoft Visual Studio .NET
>2003\Vc7\atlmfc\include\afxstr.h(67) : see declaration of
>'StrTraitMFC_DLL'
>...
>...
>
>The compiler settings are:
>/O1 /I "..\UtilClasses\Include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D
>"_AFXDLL" /D "_UNICODE" /D "UNICODE" /D "_ATL_DLL" /D "_ATL_MIN_CRT"
>/FD /MD /Yu"stdafx.h" /Fp".\ReleaseUMinSize/ModbusServer.pch"
>/Fo".\ReleaseUMinSize/" /Fd".\ReleaseUMinSize/" /W3 /nologo /c
>
>
>I couldn't find any information in the web regarding this problem.
>Thank You,
>Bibi
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm