Creating an Application
© National Instruments Corporation
This section outlines the process for developing NI-IMAQ applications
using C for Windows 95 and Windows NT. Detailed instructions on
creating project and source files are not included. For information on
creating and managing project files, consult the documentation included
with your particular development environment.
When programming, use the following guidelines:
•
You must define the constant _NIWIN prior to including any
NI-IMAQ header files. You can define this constant in your source files
by using the
#define directive
can add the definition to your project file's preprocessor definitions if
your environment supports this feature.
•
All C source files that use NI-IMAQ functions must include the
header file. Add this file to the top of your source files.
NIIMAQ.H
•
You must add the
environments allow you to add import libraries simply by inserting
them into your list of project files. Other environments allow you to
specify import libraries under the linker settings portion of the project
file.
•
When compiling, you will need to indicate where the compiler can find
the NI-IMAQ header files and shared libraries. Most of the files you
need for development are located under the NI-IMAQ target
installation directory. If you choose the default directory during
installation, the target installation directory is
National Instruments\NI-IMAQ
under the
include
under the
lib\<environment>
platforms:
Development Environment
Microsoft Visual C++
Borland C++
Chapter 1
; that is,
import library to your project. Some
IMAQ.LIB
. The include files are located
subdirectory. The import libraries are located
subdirectory for the following
Table 1-1. Import Libraries
1-3
Introduction to NI-IMAQ
. Or, you
#define _NIWIN
C:\Program Files\
Directory
lib\msc
lib\bc
NI-IMAQ User Manual
Need help?
Do you have a question about the Image Acquisition Software and is the answer not in the manual?
Questions and answers