风
风铃夜思雨
Unregistered / Unconfirmed
GUEST, unregistred user!
_write(fileHandle, (UCHAR *)(frameBuf + readPtr), firstPart);<br>或<br>memcpy((UCHAR *)(frameBuf + writePtr), dataBuf, firstPart);<br><br>以上都是一样,主要是(UCHAR *)(frameBuf + readPtr)不知如何转换<br><br>相关的类型声明<br>int firstPart;<br>UCHAR *frameBuf;<br>UCHAR *dataBuf;<br>int readPtr;<br><br>我用强制转换不知行不行<br>firstPart:integer;<br>frameBufByte;<br>readPtr:Integer;<br><br>FileWrite(FileHandle, PByte(Integer(frameBuf) + ReadPtr)^, firstPart);<br><br>由于调试很麻烦,不知这样是否正确,特让大家确认下这样正不正确