Demo program – ICP DAS USA PCI-P16C16 User Manual

Page 38

Advertising
background image

Demo Program

[VC example]

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);

}

:

:

:

}

PCI-P8R8/P16R16/P16C16/P16POR16 User’s Manual (Ver.2.2, 2005/5/5) …

38

Advertising
This manual is related to the following products: