PCI-P16R16 Series Classic Driver
DLL Software Manual
User Manual, Ver. 1.3, Oct. 2015, Page: 18
Example:
The following is a
Visual C
++
source code sample:
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);
}
:
:
:
}