Instruction manual

Table Of Contents
PC215E Page 56
6.4.1 Borland C++ User Information
1) Ensure that the library DIO_TC.C and the header file DIO_TC.H are in a directory where the
compiler can locate them. Failure to find these files may cause ‘unresolved external’
compilation errors.
2) At the beginning of the application program, add the following line:
#include "DIO_TC.H"
3) Add the file DIO_TC.C to the project list in the environment and use the MAKE command to
compile and link.
6.4.2 Microsoft C/C++ User Information
1) Ensure that the library DIO_TC.LIB and the header file DIO_TC.H are in a directory where
the compiler can locate them. Failure to find these files may cause ‘unresolved external’
compilation errors.
2) At the beginning of the application program, add the following line:
#include "DIO_TC.H"
3) Compile the Microsoft C/C++ DIO_TC library with the following command-lines:
cl -Ml -c DIO_TC.C
lib DIO_TC.LIB +DIO_TC.OBJ
4) Compile the application program using the large model and linking with the DIO_TC library
by typing the following command line:
cl -Ml myprog.c -link DIO_TC.LIB
6.5 Using the Dynamic Link Library
6.5.1 Visual Basic
To open one of the Visual Basic example projects provided with the DLL, from within Microsoft
Visual Basic select 'File|Open Project...' and select one of the .MAK project files provided in the
WINDOWS\VB subdirectory of the PC215E software directory. The project window will now
appear on the desktop. Double-click on any file in the project to view the source code, or select
Run to run the program.
To create your own PC215E Visual Basic program from scratch, perform the following steps:
From within Microsoft Visual Basic, select 'File|New Project'. A new project window
will appear, into which the standard Visual Basic Control (VBX) files are automatically
loaded. Also an empty Form1 design window will appear.
Select 'File|Add file...' and select the following files from the WINDOWS\VB
subdirectory of the PC215E software directory:
DIO_TC.BAS - PC215E DLL declarations and global constants
REGISTER.FRM - Board registration form
CONSTANT.TXT - Visual Basic global constants