DWORD aaa_Read(DWORD hOpenContext, LPVOID pBuffer, DWORD Count) { Paaa_PUBLIC_CONTEXT paaaPublic = (Paaa_PUBLIC_CONTEXT)hOpenContext; WORD read[1]; read[0] = *ADD; RETAILMSG(1,(TEXT("GIO_Read: Read Success!\r\n"),read[0])); memcpy(pBuffer,read,sizeof(read)); return TRUE; }
运行时当点击button时开发板界面弹出错误信息:“an invalid argument was encountered” 驱动调试窗口信息为: GIO_Read: Read Success! Exception 'Raised Exception' (-1): Thread-Id=0693008e(pth=846b27e0), Proc-Id=066d0072(pprc=846b26c0) 'gpio.exe', VM-active=066d0072(pprc=846b26c0) 'gpio.exe' PC=4006bdfc(coredll.dll+0x0005bdfc) RA=8011a4c8(kernel.dll+0x000064c8) SP=0004f5b8, BVA=0004f5ec
小弟实在不懂哪里出了问题,恳求各位大侠相助,先谢谢了!!!
|