views:

19

answers:

0

I am trying to port VC++6 code which builds an ActiveX component to VC++2008. Whenever I use "#include", it is giving me errors which point to cstdio and xiosbase. I dont understand the reason for it, Can someone let me know why this is happening?

Error trace:

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(34) : error C2143: syntax error : missing ';' before 'constant'

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(34) : error C2059: syntax error : 'constant'

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(41) : error C2589: 'true' : illegal token on right side of '::'

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(41) : error C2059: syntax error : '::'

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(218) : error C2059: syntax error : 'string'

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(218) : error C2059: syntax error : ')'

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(219) : error C2143: syntax error : missing ')' before ':'

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(219) : error C2590: 'Diagnostic' : only a constructor can have a base/member initializer list

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(223) : warning C4003: not enough actual parameters for macro 'failure'

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(223) : error C2523: 'std::ios_base::failure::~Diagnostic' : destructor tag mismatch

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(223) : error C2059: syntax error : ','

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(223) : error C2059: syntax error : ')'

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(223) : error C2143: syntax error : missing ')' before 'throw'

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(292) : error C3861: 'Diagnostic': identifier not found

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(294) : error C3861: 'Diagnostic': identifier not found

c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase(296) : error C3861: 'Diagnostic': identifier not found