procedure TSerialPort.proc_StartMonitor(var mmoRead: TMemo; const fName: string);
begin
//创建线程
m_Thread := TMonitorThread.Create(@Self, mmoRead, fName);
end;
这是串口接收数据创建的线程,默认接收对象是memo,我希望是edit,如何改我改成
procedure TSerialPort.proc_StartMonitor(var mmoRead: Tedit; const fName: string);
begin
//创建线程
m_Thread := TMonitorThread.Create(@Self, mmoRead, fName);
end;提示[Error] SerialPort.pas(237): Types of actual and formal var parameters must be identical
怎么改,或者将memo取得的最后一个数据取出来
begin
//创建线程
m_Thread := TMonitorThread.Create(@Self, mmoRead, fName);
end;
这是串口接收数据创建的线程,默认接收对象是memo,我希望是edit,如何改我改成
procedure TSerialPort.proc_StartMonitor(var mmoRead: Tedit; const fName: string);
begin
//创建线程
m_Thread := TMonitorThread.Create(@Self, mmoRead, fName);
end;提示[Error] SerialPort.pas(237): Types of actual and formal var parameters must be identical
怎么改,或者将memo取得的最后一个数据取出来
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货