VC++.NET2003 - Error C2146 Compiler Conformance
-
Hail Programmers I am trying to compile a VC++Net2003 Project that includes the following struct:
typedef struct xlref { WORD rwFirst; WORD rwLast; BYTE colFirst; BYTE colLast; } XLREF, FAR *LPXLREF;
The compiler chokes giving the following error message: "c:\call.h(28) : error C2146 : syntax error : missing ';' before identifier 'rwFirst'" MSDN suggests that this error occurs "as a result of compiler conformance work that was done for Visual Studio.Net 2003: explicit specialisations no longer find template parameters from primary template." If anyone speaks MSDN, I'd be grateful if could you tell me how I fix the struct? Regards Jeremy -
Hail Programmers I am trying to compile a VC++Net2003 Project that includes the following struct:
typedef struct xlref { WORD rwFirst; WORD rwLast; BYTE colFirst; BYTE colLast; } XLREF, FAR *LPXLREF;
The compiler chokes giving the following error message: "c:\call.h(28) : error C2146 : syntax error : missing ';' before identifier 'rwFirst'" MSDN suggests that this error occurs "as a result of compiler conformance work that was done for Visual Studio.Net 2003: explicit specialisations no longer find template parameters from primary template." If anyone speaks MSDN, I'd be grateful if could you tell me how I fix the struct? Regards JeremyTry to add this header to your code: #include
-
Try to add this header to your code: #include