B
Black_7_1
Unregistered / Unconfirmed
GUEST, unregistred user!
var
tmpBuffchar;
Success:Boolean;
iData:Byte;
.....
//把读来的Buffer放在了tempBuff^里了:
Success:=ReadFile(hCommDev,tempBuff^,RxCount,dwReadByte,@read_os) or (GetLastError = ERROR_IO_PENDING);
然后,
iData:=Byte(tempBuffer^);
为什么iData总是为0?
tmpBuffchar;
Success:Boolean;
iData:Byte;
.....
//把读来的Buffer放在了tempBuff^里了:
Success:=ReadFile(hCommDev,tempBuff^,RxCount,dwReadByte,@read_os) or (GetLastError = ERROR_IO_PENDING);
然后,
iData:=Byte(tempBuffer^);
为什么iData总是为0?