怪事,SPComm控件接收不到虚拟端口的GPS信息(100)

Discussion in 'GIS' started by 飘叶, May 17, 2009.

  1. 飘叶

    飘叶 Member

    Apr 1, 2015
    我用SPComm控件接收COM5的GPS信息,一切正常procedure TfrmMain.Comm1ReceiveData(Sender: TObject;
    Buffer: Pointer;
    BufferLength: Word);var tmpStr: Array [0..1000] of Char;
    begin
    Move(Buffer^,PChar((@tmpStr)^),BufferLength);
    if Memo1.Visible then
    begin
    Memo1.Lines.Clear;
    Memo1.Lines.Add(tmpStr);
    Memo1.Lines.Add('收到');
    end;

    end;
    但是用了虚拟端口软件XPort.exe(下载地址 http://www.dbjy.org/lmsoft/Updata/2009051700524355212.rar ),把GPS所在的COM5虚拟成COM7和COM8,结果用SPComm控件却从COM8上什么都接收不到!而一些导航软件却可以从COM8上接收到GPS信息哪位大哥可以帮帮我?