10.
Using the Dynamic Industrial Interface with different programming languages
This chapter provides an overview about how to best utilize the Dynamic Industrial Interface in
various programming languages.
If you experience difficulties calling the Dynamic Industrial Interface functions from your program
-
ming language, or are using a programming language not covered in this documentation, please
feel free to visit our web-site, to which we will post updated information regarding DII programming
issues. You may also contact our technical support through our website: www.decision.com.tw
10.1. C++
Since the DII DLL was developed using C++, you may easily use it to access Industrial I/O de-
vices. For this purpose, a C++ header file ("USBDII.h") as well as an import library ("USBDII.lib")
are being shipped with the interface library. Make sure that you have installed the development
release, not the retail release, which does not include support programming files. In your C/C++
source code files, just include the "USBDII.h" include file, then you can use any of the functions
provided by the USBDII DLL. Be sure to include the import library "USBDII.lib" during the linking
step of your application. So your applications successfully references the actual interface DLL.
10.2. Visual Basic
Since the Dynamic Industrial Interface is fully 32-bit compliant, only 32-bit versions of Visual Basic
are supported. Specifically, Version 6.0 are tested and supported. If you are using Visual Basic
to access any I/O Devices supported by the USB Dynamic Industrial Interface (USBDII), you can
call the USBDII DLL directly. But before that, you should import them. You may also consult the
Visual Basic sample application for more information about using Visual Basic to access the USB
Dynamic Industrial Interface (USBDII).
11. Technical Support and Feedback
We believe that customer input is the most valuable source for creating successful products. We
continuously update and extend the Dynamic Industrial Interface with new functionality, for specific
devices, for specific applications, to meet your specific needs, and provide supportive products
around the USBDII.
You may also contact our technical support through our website: www.decision.com.tw