Chapter 1 Introduction to NI-IMAQ©National Instruments Corporation1-3NI-IMAQ User ManualCreating an ApplicationThis section outlines the process for developing NI-IMAQ applicationsusing C for Windows 95 and Windows NT. Detailed instructions oncreating project and source files are not included. For information oncreating and managing project files, consult the documentation includedwith your particular development environment.When programming, use the following guidelines:• You must define the constant _NIWIN prior to including anyNI-IMAQ header files. You can define this constant in your source filesby using the #definedirective; that is, #define _NIWIN. Or, youcan add the definition to your project file’s preprocessor definitions ifyour environment supports this feature.• All C source files that use NI-IMAQ functions must include theNIIMAQ.H header file. Add this file to the top of your source files.• You must add the IMAQ.LIB import library to your project. Someenvironments allow you to add import libraries simply by insertingthem into your list of project files. Other environments allow you tospecify import libraries under the linker settings portion of the projectfile.• When compiling, you will need to indicate where the compiler can findthe NI-IMAQ header files and shared libraries. Most of the files youneed for development are located under the NI-IMAQ targetinstallation directory. If you choose the default directory duringinstallation, the target installation directory is C:\Program Files\National Instruments\NI-IMAQ. The include files are locatedunder the include subdirectory. The import libraries are locatedunder the lib\ subdirectory for the followingplatforms:Table 1-1. Import LibrariesDevelopment Environment DirectoryMicrosoft Visual C++ lib\mscBorland C++ lib\bc