Here are some guidelines from our driver manual.
How to compile in Borland C++ Builder, Borlanc C++ V5.0 or above?
(1) Please new a Project which you should set it in using class library, don't use OWL.
(2) Import \Program Files\Advantech\Examples\BC\LIB\ADAPIBC.LIB for Borland C++ or \Program Files\Advantech\Examples\BCB\LIB\ADAPIBC.LIB for Borland C++ Builder. The Header Libraries for BC++/BC++ Builder are the same,
but it is different from the .LIB file for VC++. If you want to call to any DLL by BC++/BC++ Builder, you can apply IMPLIB utility to create new .LIB files.
Syntax: IMPLIB [options] libname[.lib] dllname[.dll]
Example:
(1) IMPLIB?C:\Program Files\Advantech\Adsapi\Examples\BC\LIB \ADSAPIBC.LIB?C:\WinNT\ADSAPI32.DLL
(2) IMPLIB?C:\Program Files\Advantech\Adsapi\Examples\BC\LIB \ADSAPIBC.LIB ?C:\Windows\ADSAPI32.DLL
(3) Add your filename of source code into this project.
(4) You configure the Data Alignment to Quad Word (8-Byte) in the Processor item of 32-bit Compiler setup of Project Options. Because the default Data Alignment of Visual C++, Visual Basic and Delphi are in Quad Word (8-Byte), you don have to change the configuration in those programming language environment.
Attached are two BCB examples, one for analog input with interrupt trnasfer and the other for analog output.
Thank you for your feedback
We will look over your massage and get back to you soon if you need further assistance!