Problem wit MDAC when trying to compile in VS2008 using x64 bit target platform

Posted by grobartn on Stack Overflow See other posts from Stack Overflow or by grobartn
Published on 2010-06-03T19:32:34Z Indexed on 2010/06/03 19:34 UTC
Read the original article Hit count: 353

Filed under:
|
|
|
|

I am trying to compile an 32 bit application. I am aware of problems with it but that is why its being compiled on 64 bit version.

I am hanging at this problem. Application uses lots of sql stuff.

In sqltypes.h file: (provided by MDAC)

#ifdef _WIN64
typedef INT64           SQLLEN;
typedef UINT64        SQLULEN;
typedef UINT64  SQLSETPOSIROW;
#else

For some reason when its compiled on 32 bit platform it works great But when I try building it on 64 it goes berserk.

Error 61 error C2146: syntax error : missing ';' before identifier 'SQLLEN' ..\external\microsoft sdk\include\sqltypes.h 50

It does not recognize INT64, UINT64.

Is there something I need to enable so it will work under 64 build process? Missing some #include or #define?

Any help would be great

Thanks

© Stack Overflow or respective owner

Related posts about sql

Related posts about visual-studio-2008