[fpc-devel] Porting from Delphi to FPC - challenge #2.

Ozz Nixon ozznixon at gmail.com
Tue Oct 2 14:22:16 CEST 2018


Got it, thanks!

On Tue, Oct 2, 2018 at 7:57 AM Denis Kozlov <dezlov at gmail.com> wrote:

> PChar is a typed pointer, so you need to point it to the memory location
> of TmpBugStr using the "@" operator, like so:
>
> const
>    TempString : PChar = @TmpBugStr;
>
>
> On 01/10/2018 13:18, Ozz Nixon wrote:
>
> Type
>    Line:Array[0..127] of Char;
>
> Var
>    TmpBugStr:Line;
>
> {later in the code}
> Const
>    TempString : PChar = TmpBugStr;
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20181002/1caba2f9/attachment.html>


More information about the fpc-devel mailing list