• Compile switches for 64-bit

    By geoff Anderson 1 decade ago

    I've noticed that you haven't switched in DHANDLE in place of HANDLE (which is apparently required for 64-bit) or the macro to make this work.  You also use the #pragma pack(push,1) on the domino files.

    Can you tell me the compile/link switches that you are using to get this to compile and run in both 32-bit and 64-bit?  I guess this is more of an intellectual exercise - i'm just curious as to why mine doesn't work ;o)

    Cheers,

    Geoff

    • 64bit

      By Ulrich Krause 1 decade ago

      The sourcecode in the zip is the old, unmodified one.

      In my project I  changed HANDLE to DHANDLE and removed the #pragma for the 1bit alignment.

      Later on I saw that the ND64 in the preprocessor definitions does all this stuff. Look into global.h You will see that with this definition the REQUIRED_ALIGNMENT  is set and also all Handles are DHANDLE now.

      Here are my preprocessor definitions

      PreprocessorDefinitions="W64;W32;_AMD64;ND64;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;HANDLE_IS_32BITS"

      • Wow! Thanks for the quick response

        By geoff Anderson 1 decade ago

        You are correct, I hadn't realised those were in there... I've changed my pp definitions to match yours and it still compiles... wonder if that will actually make a difference  (I had some instability when running on the 64-bit platform).

        FYI: I've written a code-delta monitoring extension which is able to compare line-by-line code changes between edits, and uses a server task to roll them on into a code delta document.  Works perfectly fine on the 32-bit platform, but was struggling on 64-bit.

        Again, I really appreciate your speedy response,

        Cheers,

        Geoff