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;

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to