May 24th, 1999, 11:20 AM
Environment: VC++ 6.0 SP2, WINNT 4.0 SP3
I created an MDI project using the wizard. Added a declaration
string s;
in the doc class
and included the header <string> (without .h)
(a) first in the implementation file for the doc, just above the include statament for its header. It didn't work, so I
(b) removed that statement and included it inside the header file (of the doc). This too, didn't work.
In both cases, I got the errors
d:\msvisualstudio\vc98\include\xmemory(39) : warning C4100: '_P' : unreferenced formal parameter
d:\msvisualstudio\vc98\include\xmemory(41) : warning C4100: '_P' : unreferenced formal parameter
d:\msvisualstudio\vc98\include\xlocale(296) : warning C4663: C++ language change: to explicitly specialize class template 'codecvt' use the following syntax:
template<> class codecvt<unsigned short,char,int> ...
d:\msvisualstudio\vc98\include\xlocale(387) : warning C4018: '<' : signed/unsigned mismatch
d:\msvisualstudio\vc98\include\xlocale(519) : warning C4663: C++ language change: to explicitly specialize class template 'ctype' use the following syntax:
template<> class ctype<char> ...
d:\msvisualstudio\vc98\include\xlocale(552) : warning C4100: '_D' : unreferenced formal parameter
d:\msvisualstudio\vc98\include\xlocale(554) : warning C4100: '_D' : unreferenced formal parameter
e:\pb\pbdoc.h(26) : error C2146: syntax error : missing ';' before identifier 's'
e:\pb\pbdoc.h(26) : error C2501: 'string' : missing storage-class or type specifiers
e:\pb\pbdoc.h(26) : error C2501: 's' : missing storage-class or type specifiers
How do I fix these?
In general, how do you get MFC and Standard C++ library constructs to co-exist?
Thanks in advance.
AYS.
I created an MDI project using the wizard. Added a declaration
string s;
in the doc class
and included the header <string> (without .h)
(a) first in the implementation file for the doc, just above the include statament for its header. It didn't work, so I
(b) removed that statement and included it inside the header file (of the doc). This too, didn't work.
In both cases, I got the errors
d:\msvisualstudio\vc98\include\xmemory(39) : warning C4100: '_P' : unreferenced formal parameter
d:\msvisualstudio\vc98\include\xmemory(41) : warning C4100: '_P' : unreferenced formal parameter
d:\msvisualstudio\vc98\include\xlocale(296) : warning C4663: C++ language change: to explicitly specialize class template 'codecvt' use the following syntax:
template<> class codecvt<unsigned short,char,int> ...
d:\msvisualstudio\vc98\include\xlocale(387) : warning C4018: '<' : signed/unsigned mismatch
d:\msvisualstudio\vc98\include\xlocale(519) : warning C4663: C++ language change: to explicitly specialize class template 'ctype' use the following syntax:
template<> class ctype<char> ...
d:\msvisualstudio\vc98\include\xlocale(552) : warning C4100: '_D' : unreferenced formal parameter
d:\msvisualstudio\vc98\include\xlocale(554) : warning C4100: '_D' : unreferenced formal parameter
e:\pb\pbdoc.h(26) : error C2146: syntax error : missing ';' before identifier 's'
e:\pb\pbdoc.h(26) : error C2501: 'string' : missing storage-class or type specifiers
e:\pb\pbdoc.h(26) : error C2501: 's' : missing storage-class or type specifiers
How do I fix these?
In general, how do you get MFC and Standard C++ library constructs to co-exist?
Thanks in advance.
AYS.