I have converted one of my Visual studio 2003 projects into VS2008 and when trying to build the project in VS2008 I get the below mentioned error.
In oledb.h, I have
typedef LONG DBROWCOUNT;
and in sybdb.h, I have
#define DBROWCOUNT 16
When I compile, I get the following errors:
c:\program files\microsoft sdks\windows\v6.0a\include\oledb.h(633) : error C2143: syntax error : missing ';' before 'constant'
c:\program files\microsoft sdks\windows\v6.0a\include\oledb.h(633) : error C2059: syntax error : 'constant'
c:\program files\microsoft sdks\windows\v6.0a\include\oledb.h(3005) : error C2059: syntax error : 'constant'
If I comment the //#define DBROWCOUNT 16
, then these errors are solved,but I am not supposed to make changes in code, so please help me to come over this error,thanks in advance.