
CYDAS UDR Library User’s Guide CYDAS UDR Library Description and Use
9
Visual Basic example programs
A complete set of Visual Basic example programs is included in the VBWIN folder of the CYDAS UDR
Library installation directory. Each program illustrates the use of a CYDAS UDR Library function from
within a Visual Basic program. The .FRM files contain the programs, and the corresponding .VBP or .MAK
files are the project files used to build the programs for Visual Basic.
Microsoft Visual C++
To use the CYDAS UDR Library with MS Visual C++, include the CYDAS UDR Library header file CBW.H
in your C/C++ program and add the library file CBW32.LIB to your library modules for linking to the
CBW32.DLL. When using a 16-bit version of MS Visual C++, replace the library file CBW32.LIB with
CBW.LIB.
Microsoft Visual C++ example programs
The CWIN folder of the CYDAS UDR Library installation directory contains three sample programs -
Wincai01, Wincai02 and Wincai03. Each program is an example of a simple C program that calls a few of the
CYDAS UDR Library functions from a Windows application. These programs contain directives for building
16- OR 32- bit applications. Use the .MAK project files to build a 16-bit application, and the .DSP project
files to build a 32-bit application.
The non-Windows C examples in the C folder of the installation directory provide a more complete set of
examples. You can compile these programs as 32-bit console applications for Windows by using the
MAKEMC32.BAT file.
Borland C /C++ for Windows
For 32-bit Borland (or Inprise) C/C++ compilers, include the CYDAS UDR Library header file CBW.H in
your program and link with the import library file CBW32BC.LIB.
When using the 16-bit version of Borland C/C++, use a tool called IMPLIB to generate an OMF-style import
library that your application can link with. For 16-bit users, IMPLIB accepts a DLL (CBW.DLL) as input and
creates an OMF-style import library (BCBW.LIB). You can run IMPLIB on CBW.DLL to emit a 16-bit
OMF-style import library (BCBW.LIB).
Borland C/C++ example programs
The non-Windows C examples provide an extensive set of examples. These can be compiled as 32-bit console
applications using the MAKEBC32.BAT file.
Delphi example programs
A complete set of Delphi example programs is included in the DELPHI folder of the CYDAS UDR Library
installation directory. Each program illustrates the use of one CYDAS UDR Library function from within a
Delphi program. The .PAS files contain the programs. The corresponding .DPR file is the Project file used to
build the program in a 16 bit or 32 bit Delphi environment.
In 16-bit Delphi environments, use the
cbw.dll header. In 32-bit Delphi environments use the cbw32.dll
header. Conditionals within the example programs determine which of the DLLs is used. Where integers are
passed by reference to a CYDAS UDR Library function, use the SmallInt data type in 32-bit environments.
The relevant functions are defined this way in the 32-bit header, so if you try to pass an Integer data type you
will get a compiler error.
Comentarios a estos manuales