请问这个有什么错
ULONG DeviceNum=0;//表示设备号LONG DriverHandle;//返回设备句柄,指向要操作的设备
PT_DioReadBit ptDioReadBit;
DRV_DeviceOpen(DeviceNum,&DriverHandle);
ptDioReadBit.port=0;
ptDioReadBit.bit=0;
ptDioReadBit.state=0;
DRV_DioReadBit(DriverHandle,&ptDioReadBit);
DRV_DeviceClose(&DriverHandle);
为什么一运行就出现内存不能被written,谢了!