Chapter appendix b - borland.pdf, Appendix b – using borland c++ b – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 335

Programmer’s Manual
939198
Using Borland C++ B-1
Appendix B – Using Borland C++
B
This appendix illustrates beginning a project with 32-bit Borland C++ Builder V5.0. Subsequent or previous
versions of Borland C++ may require changes or modifications to these procedures. In this case, please consult
Borland C++ documentation. However, though the project build procedures may differ, other 32-bit versions of
Borland C++ (4.0, 6.0 or later) should function as well.
Note: The DaqX.DLL has been developed and built using Microsoft Visual C++. However, a Borland C++
compatible export library BCB5DaqX.LIB is available.
Note: BCB5DaqX.LIB and other language support files and examples are located in:
To begin your first project, perform the following:
1) Launch Borland C++ IDE.
2) Under the File menu, select New.
3) Select the project type that best meets your needs; or if building an existing DaqX example, select Console
Wizard and use the following settings:
• Source Type: C++
• Use VCL: NO
• Multi Threaded: NO
• Console Application: YES
• Specify project source: YES
• Select the DaqX example file of interest.
4) Under the Project menu, select Add to Project.
5) Add ..\lib\BCB5DaqX.LIB to the project by browsing to the DaqX Programming Language Support directory
described above.
6) If using an existing DaqX example, include the file ..\include\DaqRoutines.CPP
Note: _kbhit() may not be defined; use kbhit() instead.
7) If creating a new .cpp file, place an include statement for DaqX.H before any references to the DaqX API
functions.
8) Under Compiler Options, set the “Pre-compiled header” option to “None”
9) IMPORTANT! Under Compiler Options, set the “Treat enum types as ints” option to true.
10) Save the project.