I can't set ansistrings using for FPC, and compiler always treat them as short (pascal) strings (in separate copmiler and FPIDE everything normal)
Example:
<code>BlockWrite(FileHandle,pointer(ANSIString)^,length(ANSIString)+1);</code>
(pointer used, because FPC treat ANSI strings as PChar^ by default, not ^ANSIString)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't set ansistrings using for FPC, and compiler always treat them as short (pascal) strings (in separate copmiler and FPIDE everything normal)
Example:
<code>BlockWrite(FileHandle,pointer(ANSIString)^,length(ANSIString)+1);</code>
(pointer used, because FPC treat ANSI strings as PChar^ by default, not ^ANSIString)