18
Chapter 2
•
•
•
•
•
•
Create a New Project and Import the Driver Type Libraries
To use an IVI Driver in a Visual C++ program, you must provide the path to the
driver DLL.
1 Launch Visual Studio 2005 and create a Win32 Console Application in C++
with the name IVI demo.
Note:
The program already includes some required code, including the header file
#include stdafx.h
.
2 From the Tools menu select Options.
3 Expand “Projects and Solutions”, then click on “VC++ Directories”
4 Click on the “Show directories for” combo box and choose “Library files”
5 Add the following two entries to your path.
The first entry will point to the default directory for IVI drivers. This is typically:
“C:\Program Files\Ivi\Bin”
The second entry points to the VISA DLL that many drivers require: