D
daileking
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Comm1ReceiveData(Sender: TObject; Buffer: Pointer;
BufferLength: Word);
我有个串口接受程序,要把收到的数据存到文件中。(全是二进制)
我用
fstream1:=TFileStream.Create('c:/mc.txt',fmCreate);
fstream1.Seek(0,soFromEnd);
fstream1.WriteBuffer(PByte(Buffer),BufferLength);
我打开保存下来的文件,全是乱码!Why???
BufferLength: Word);
我有个串口接受程序,要把收到的数据存到文件中。(全是二进制)
我用
fstream1:=TFileStream.Create('c:/mc.txt',fmCreate);
fstream1.Seek(0,soFromEnd);
fstream1.WriteBuffer(PByte(Buffer),BufferLength);
我打开保存下来的文件,全是乱码!Why???