Chapter 3
Developing Your Application
3-6
ni.com
3.
Configure your application to de-reference the pointer to call an
NI-DNET function, as illustrated by the following code.
NCTYPE_STATUS status;
NCTYPE_OBJH MyObjh;
status = (*PncOpenDnetIO) ("DNET0", &MyObjh);
if (status < 0) {
printf("ncOpenDnetIO failed");
}
4.
Free
nican.dll
.
Before exiting your application, you need to free
nican.dll
with the
following command.
FreeLibrary(NidnetLib);
Programming Model for NI-DNET Applications
The following steps provide an overview of how to use the NI-DNET
functions in your application. The steps are shown in Figure 3-1 in
flowchart form. The NI-DNET functions are described in detail in the
NI-DNET Programmer Reference Manual
.