Accessing API through DLL Interface
This section describes the syntax of the exported functions in the gcdapi.dll library. The DLL API consists of 8 functions: 6 from the Device API and 2 (gcdapi_Load and gcdapi_Unload) are exclusive of "Direct Interface", utilized to initiate/close the interface.
Direct Interface Functions:
Example and Template:
1. gcdapi_Load
Must be called after load the gcdapi.dll library.
Prototype:
uint8_t _stdcall gcdapi_Load ( )
Parameters:
None
Return:
1 for success and 0 for error
Example:
2. gcdapi_Unload
Must be called before unload the gcdapi.dll library.
Prototype:
void _stdcall gcdapi_Unload ( )
Parameters:
None
Return:
None
Example:
Example Code for Direct Interface
Direct Interface Template
You can use the direct API template to create the basic project container and a preliminary setups for your application. Unzip and open the "Direct API Template.sln" with Visual C++ 2010 (or newer).
• Download: Direct API Template
|