Doc. # 1-0002797
Date Updated 09-27-2004 Date Created 07-27-2000
Document Type Knowledge Base Related OS
Related Product PCL-1800/ PCL-711/ PCL-711B/ PCL-711S/ PCL-812PG/ PCL-813/ PCL-818/ PCL-818H/ PCL-818HD/ PCL-818HG/ PCL-818L
How to use PCL-1800 32-bit DLL drivers with BC++ and BC++ Builder?
Solution:
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.
Download File Release Date Download Site
bcb_ex.zip (KM-NLEE-4CFAUC) 07-26-2000
  1. Primary
  2. Secondary