GBS Elektronik MCA-166 Communication DLL User Manual

Page 32

Advertising
background image

MCA527

6 MS-Windows DLL for the Communication with Several
MCAs

There is a further dynamic link library (mca32cmx.dll) which allows applications to communicate with several MCAs simultaneously.
In order to include the DLL in your program, you have to use the file MCA32CMX.BAS for Visual Basic or the files MCA_COMX.H
and MCA32CMX.LIB for C/C++. All functions and structures are declared in these files.

The function names of mca32cmx.dll. are identical to the function names of mca32com.dll. However, not all functions are provided.
The initialization functions COMM_INIT, COMM_INIT_EX, COMM_INIT_EX2, COMM_INIT_EX3, COMM_INIT_ETHERNET and
COMM_INIT_ETHERNET_IP has been omitted. Use the function COMM_INIT_SELECT for initialization. The function works like the
corresponding function within mca32com.dll, with one exception, there is an additional parameter.

short CALLBACK COMM_INIT_SELECT(unsigned short* lpunIndex, MCA_COMM_INIT* init,

clock_t lTimeOut,int nTryAgain, HWND hWnd);

If the function succeeds, the additional parameter lpunIndex returns the index for the communication path that has to been
passed to all other functions. The index is always the first parameter. All functions are defined corresponding to the following
template.

return_type CALLBACK function_name(unsigned short unIndex[,parameters_equal_to_mca32com.dll]);

The functions IS_USB_PORT, SET_LATENCY_TIMER and SET_LATENCY_TIMER_EX has also been omitted. All omitted
functions are no more needed. There are alternative functions for it. Mca32com.dll provides these functions only for compatibility
reasons.

32

Advertising
This manual is related to the following products: