User manual

Chapter 2 Fundamentals of Building Windows Applications
NI-DAQ User Manual for PC Compatibles 2-8 ni.com
Change the right hand side of the equal sign to indicate your Borland C++
IDE directory. For help on the usage of the batch file, type
<batchfile.bat> /?
from a DOS prompt, where
<batchfile.bat>
is the file name of batch file you want to run (for example,
AIonePoint.bat
).
To create your own example project with Borland C++ 5.0 or later using the
provided example files, follow the steps mentioned above in Developing
an NI-DAQ Application. In place of
nidaq.h
, make sure you include
nidaqex.h
. Also, make sure you include the import library
nidex32b.lib
into your project in addition to
nidaq32b.lib
.
Refer to the NI-DAQ Examples Help (Start»Programs»National
Instruments DAQ»NI-DAQ Examples Help) for additional information
regarding NI-DAQ examples.
Special Considerations
Refer to Special Considerations in the Creating a Windows Application
Using Microsoft Visual C++ section.
Using Borland Delphi with NI-DAQ
The NI-DAQ installer installs a prototype file for use with Borland
Delphi 2.0 or later, which is stored in the
.\Include
directory in
your NI-DAQ directory. To use this prototype file, include the file
nidaq.pas
into your Borland Delphi project, and be sure to include
this line in your Delphi source code:
uses NIDAQ;
Note
There are no examples written with the NI-DAQ API for Borland Delphi. For
examples on NI-DAQ function flow, refer to the examples of other languages and the
flowchart in Chapter 3, Software Overview. Refer to the note at the end of the NI-DAQ
Examples section of this chapter for information on examples using ComponentWorks
ActiveX controls.