beautypg.com

2 programming with device drivers function library, 3 troubleshooting device drivers error, Programming with device drivers function library – Advantech 4718 User Manual

Page 13: Troubleshooting device drivers error

background image

7

Chapter 1

1.5.2 Programming with Device Drivers Function Library

Advantech Device Drivers offer a rich function library that can be utilized
in various application programs. This function library consists of numer-
ous APIs that support many development tools, such as Visual C++,
Visual Basic, Delphi and C++ Builder.

1.5.3 Troubleshooting Device Drivers Error

Driver functions will return a status code when they are called to perform
a certain task for the application. When a function returns a code that is
not zero, it means the function has failed to perform its designated func-
tion. To troubleshoot the Device Drivers error, you can pass the error
code to DRV_GetErrorMessage function to return the error message.
Alternatively, you can refer to the Device Drivers Error Codes Appendix
in the Device Drivers Manual for a detailed listing of Error Codes, Error
IDs and the Error Messages.