delphi - RawByteString type in Free Pascal -


free pascal docs state rawbytestring type defined in free pascal cannot find where. 1 should expect defined in system unit, in delphi, when compile (using fpc 2.6.2, {$mode delphi}) function declaration

class function fromansi(const s: rawbytestring): bytearray; static; 

i compiler error

error: identifier not found "rawbytestring" 

guess can declare type myself:

type   rawbytestring = type ansistring(cp_none); 

but find "native" fpc declaration.


thanks quick answers. since don't need support fpc 1.x workaround need is:

{$ifdef fpc} {$if fpc_version = 2}   {$if fpc_release <= 6}     type       rawbytestring = ansistring;   {$ifend} {$ifend} {$endif} 

you need use fpc 2.7.1.

the new string types not exist in 2.6.x


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -