dynarithmic / twain_library

Dynarithmic TWAIN Library, Version 5.x
Apache License 2.0
60 stars 25 forks source link

Make 32-bit and 64-bit return types consistent. #5

Closed dynarithmic closed 4 years ago

dynarithmic commented 4 years ago

Currently, return types such as DTWAIN_SOURCE will either be 4 bytes in length for the 32-bit version of DTWAIN, or 8 bytes in length for the 64-bit version of DTWAIN. The goal is to make return types that vary between versions of DTWAIN consistent.

The DTWAIN_SOURCE and other types will now be made an 8 byte integer for both the 32-bit DLL and 64-bit DLL. This allows programming languages that "guess" the return type of exported functions to be one consistent integer type (Python, for example).

dynarithmic commented 4 years ago

Closing this incident, as the 32 to 64-bit variable changes have been put on hold.