danieleteti / delphistompclient

STOMP client for Embarcadero Delphi and FreePascal.
141 stars 64 forks source link

StompClient does not compile under Delphi XE5 #21

Open Kromster80 opened 7 years ago

Kromster80 commented 7 years ago

Following code does not compile in Delphi XE5:

function TStompFrame.OutputBytes: TBytes;
begin
  Result := TEncoding.UTF8.GetBytes(FCommand + LINE_END + FHeaders.Output + LINE_END)
    + GetBytesBody + TEncoding.UTF8.GetBytes(COMMAND_END);
end;

Error:

[dcc32 Error] StompClient.pas(546): E2008 Incompatible types

c3213213 commented 6 years ago

I have the same issue. if any solution?

xinnia commented 6 years ago

same issue under XE2. how to fix it?

EriksonBahr commented 6 years ago

Seems like sum arrays is not a feature on old delphi IDEs, you could iterate over all TBytes and add their content into the result (first you have to set the length of the result array).

Pull requests are appreciated :)

eppen commented 5 years ago

same issue under delphi 2010