MsgBox "End of Job."
End Sub
C++ DEVQUERY Sample Application
This C sample application is a Win32 console application. It illustrates
how to use the ATTEN.EU IOUtils COM. A Win32 console application is
a Win32 application which uses text-based input and output, not a
graphical interface. This allows you to quickly create a Win32
application by using simple input and output functions.
Creating the Application
Create a new Visual C++ project as follows:
1. Create a new Win32 Console Application project, calling the project
DEVQUERY.
2. Specify that this project will be a simple application in the last
AppWizard step.
LISTING C.3.
THE DEVQUERY FUNCTION.
// devquery.cpp : Defines the entry point for the console application.
//
// Call the NI-VISA library visa32.dll
//
//
#include "stdafx.h"
#include "visa.h"
//standard include for a Microsoft Visual C++ project
#include "stdio.h"
#include "windows.h"
void main(int argc, char* argv[])
194