Creating an Application with Microsoft Visual C and C++
- Updated2024-01-05
- 1 minute(s) read
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
- Open an existing or new Visual C/C++ project to manage your application code.
- Create source code files of type .c (C) or .cpp (C++).
- Add the source code files to the project.
- Add the following code in the source code files:
#include "ni568x.h"
- 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.
- 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.
- Select Project»Properties»Configuration Properties»Linker»Input»Additional Dependencies, and add ni568x.lib.
- 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.
- Build your application using the appropriate programming flow steps.