1 min read

Writing 64-bit applications?

We now provide 64-bit versions of our BTR2SQL drivers, to allow you to take advantage of the greater address space that comes with working with 64 bits.


The new driver name is 'w64btr.dll' in following with Pervasive's naming convention. Deployment is the same as always. Copy the driver and your license file into your application bin folder.


The main difference in the 64-bit API is that the Btrieve CHUNK descriptor contains a pointer which has now been extended from 4 to 8-bits to take advantage of the full 64-bit address space.


Pervasive's header files do not contain the #pragma pack(1) needed for proper alignment, so please be sure to define this before including the Pervasive headers in your 64-bit application.


Another hint when moving to 64-bit is to ensure that any structures you map directly on top of Btrieve files are properly aligned, and that the fields are defined in such a way to preserve their byte lengths as defined in your data.


Microsoft, Oracle, and MySQL all have 64-bit versions of their clients which are downloadable from their websites, and also shipped with the 64-bit versions of their servers.


Please note, these drivers are specifically if you are compiling your application as 64-bit. If you run under a 64-bit versions of Windows or if your SQL server is 64-bit, but your application is still 32-bit, then you should keep using the 32-bit version of the driver.

 

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Introduction Many independent software vendors (ISV) and corporate users still rely on applications that use a category of database collective called...

Read More
Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

COBOL applications are the foundation of numerous essential business functions, especially within the banking, insurance, and government sectors....

Read More
Application Modernization 101: Ultimate Guide to Digital Transformation

Application Modernization 101: Ultimate Guide to Digital Transformation

Imagine breaking free from the constraints of old, monolithic systems and embracing the agility and innovation of cloud-based solutions.

Read More