Driver Software
PHYTEC Meßtechnik GmbH 2004 L-608e_4
95
5.2.5
Application of the W indows 95/98
TM
/ Windows NT4.0
TM
/
Windows 2000
TM
DLL
In order to use the DLL Gr4CDLL.DLL, the software developer must
define a function pointer for each function that will be used in the
application.
Example:
•
Function to be used: WORD Get_Error(void)
•
Definition of the function pointer:
WORD (PASCAL * lpfn_GetError)(void);
Use GetProcAddress(…) to obtain the relationship between the
function pointer and the DLL.
Example:
lpfn_GetError = (WORD(PASCAL *)(void))
GetProcAddress(handle, „Get_Error“);
The function can now be called with:
WORD Errorstatus;
...
Errorstatus = lpfn_GetError();
Caution:
Check the value of the function pointer (return value from
GetProcAddress) to be sure that it = 0. A value of 0 ensures that the
driver version installed on the user’s computer supports the functions
and will return a valid handle.
Summary of Contents for eGrabber-4plus
Page 8: ...eGrabber 4plus PHYTEC Meßtechnik GmbH 2004 L 608e_4 ...
Page 10: ...eGrabber 4plus PHYTEC Meßtechnik GmbH 2004 L 608e_4 ...
Page 56: ...eGrabber 4plus 46 PHYTEC Meßtechnik GmbH 2004 L 608e_4 ...
Page 80: ...eGrabber 4plus 70 PHYTEC Meßtechnik GmbH 2004 L 608e_4 ...
Page 81: ...Part 2 Programmer s Manual PHYTEC Meßtechnik GmbH 2004 L 608e_4 71 Part 2 Programmer s Manual ...
Page 82: ...eGrabber 4plus 72 PHYTEC Meßtechnik GmbH 2004 L 608e_4 ...
Page 188: ...eGrabber 4plus 178 PHYTEC Meßtechnik GmbH 2004 L 608e_4 ...
Page 192: ...eGrabber 4plus 182 PHYTEC Meßtechnik GmbH 2004 L 608e_4 ...
Page 204: ...eGrabber 4plus 194 PHYTEC Meßtechnik GmbH 2004 L 608e_4 ...
Page 206: ...Published by PHYTEC Meßtechnik GmbH 2004 Ordering No L 608e_4 Printed in Germany ...