Init and Exit Processing


Init and exit processing are common processing that are necessary for all programming.
Init processing is performed by function OpenApplication.
This function starts the application and allows access.

There are 3 parameters in function OpenApplication.
The first parameter is the screen status.
Screen status include Minimize, Normal size for each application, and Maximize. For normal size, pass 1 as the parameter.

The second parameter is the device name.
The device name is a string such as "AIO000" registered in the device manager or utility.

The third parameter specifies an empty string.

If the function completes normally, the return value (Ret) is 0.
If the function fails to execute, a value other than 0 is returned.

Exit processing is performed by function CloseApplication.
This function closes the application and disables access.
Please make sure to execute this function before terminating your application.
Otherwise, the resources used by the device driver may remain unreleased.

Visual Basic .NET (.NET Framework)  
Visual C# (.NET Framework)
Visual C++ (MFC)