Directly Accessing The Gpib-32.Dll Exports - National Instruments NI-488.2 User Manual

National instruments user manual ni-488.2
Hide thumbs Also See for NI-488.2:
Table of Contents

Advertisement

Chapter 3
Developing Your NI-488.2 Application
NI-488.2 User Manual for Windows
support 16-bit wide characters, use only the 8-bit ASCII versions, named
,
,
ibbnaA
ibfindA
ibrdfA
named
,
ibbnaW
ibfindW
Unicode or ASCII versions of these functions with Windows 2000/NT, but
only the ASCII versions with Windows 98/95.
In addition to pointers to the status variables and a handle to the loaded
, you must define the direct entry prototypes for the
gpib-32.dll
functions you use in your application. For the prototypes for each function
exported by
gpib-32.dll
instructions on accessing the online help, refer to the
Documentation
section in
The direct entry sample programs illustrate how to use direct entry to
access
gpib-32.dll
online help for your development environment.

Directly Accessing the gpib-32.dll Exports

Make sure that the following lines are included at the beginning of your
application:
#ifdef __cplusplus
extern "C"{
#endif
#include <windows.h>
#include "decl-32.h"
#ifdef __cplusplus
}
#endif
In your Win32 application, you need to load
accessing the
gpib-32.dll
you how to call the
LoadLibrary
check for an error:
HINSTANCE Gpib32Lib = NULL;
Gpib32Lib=LoadLibrary("GPIB-32.DLL");
if (Gpib32Lib == NULL) {
return FALSE;
}
, and
. The Unicode versions are
ibwrtfA
,
, and
ibrdfW
ibwrtfW
, refer to the NI-488.2 online help. For
About This
Manual.
. For more information about direct entry, refer to the
exports. The following code fragment shows
function to load
3-14
. You can use either the
Using the NI-488.2
before
gpib-32.dll
gpib-32.dll
www.natinst.com
and

Advertisement

Table of Contents
loading

Table of Contents