Creating an Application with Microsoft Visual C and C++

This topic assumes that you are using Microsoft Visual C or C++ to manage your code development and that you are familiar with the Microsoft Visual C++ ADE.

Creating an Application with Microsoft Visual C++ 2008

  1. Open an existing or new Visual C/C++ project to manage your application code.
  2. Create source code files of type .c (C) or .cpp (C++).
  3. Add the source code files to the project.
  4. Add the following code in the source code files:

    #include "ni568x.h"

  5. Add the NI-568x include and library files to the project. <IVIROOTDIR32> is an alias to a specific National Instruments file folder location. Refer to the NI-568x Readme for more information about installed file locations.
    1. Select Project»Properties»Configuration Properties»C/C++»General»Additional Include Directories , and add the paths, separated by a semicolon, to the ni568x.h and visa.h files. The ni568x.h and visa.h files are located in the <IVIROOTDIR32>\Include and <VXIPNPPATH>\WinNT\Visa\include directories, respectively.
    2. Select Project»Properties»Configuration Properties»Linker»Input»Additional Dependencies, and add ni568x.lib.
    3. Select Project»Properties»Configuration Properties»Linker»General»Additional Library Directories, and add the path to the ni568x.lib file. The ni568x.lib file is located in the <IVIROOTDIR32>\Lib\msc or the <IVIROOTDIR64>\Lib_x64\msc directory.
  6. Build your application using the appropriate programming flow steps.