ICP DAS USA PCI-P16R16 Series Software Manual page 19

Classic driver dll
Hide thumbs Also See for PCI-P16R16 Series:
Table of Contents

Advertisement

PCI-P16R16 Series Classic Driver
DLL Software Manual
 Example:
The following is a
Visual C
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM, lParam)
{
static char cBuf[80];
HDC
hdc;
TEXTMETRIC tm;
PAINTSTRUCT ps;
int
i;
switch (iMsg)
{
case WM_CREATE :
// window initial
/**************************************************************/
/* NOTICE: call PCI_DriverInit() to initialize the driver. */
/**************************************************************/
// Initial the device driver, and return the board number in the PC
wInitialCode=PCI_DriverInit(&wTotalBoard);
if( wInitialCode!=NoError )
{
MessageBox(hwnd,"No PCI card in this system !!!","PCI Card Error",MB_OK);
}
:
:
:
}
++
source code sample:
User Manual, Ver. 1.3, Oct. 2015, Page: 18

Advertisement

Table of Contents
loading

Table of Contents