To do this in Windows XP, right-click Computer > Properties > Advanced > Environment Variables, select
Path in the
System Variables lower list, click
Edit, and add the path of the VDDK bin directory.
In Windows 7, right-click Computer > Properties > Advanced System Settings > Environment Variables, select
Path in the
System Variables list,
click
Edit, and add the path of the VDDK bin directory.
To execute the compiled program, choose Debug > Start Without Debugging, or type this in a command prompt after changing to the
doc\sample location given above:
The Visual Studio solution file vixDiskLibSample.sln and project file
vixDiskLibSample.vcproj are included in the sample directory.
You can copy vixDiskLibSample.cpp and its
Makefile to a directory where you have write permission, or switch user to root. On some Linux systems you need to add
#include statements for
<stdio.h> and
<string.h> after the
#else clause on line 15. Type the
make command to compile. Run the application:
The Makefile fetches any packages that are required for compilation but are not installed.
Windows requires the lib/vixDiskLib.lib file for linking, and the
bin/*.dll files at runtime.
Linux uses .so files for both linking and running.