[Lazarus] External tools API

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sat Oct 2 07:48:59 CEST 2010


Hello,

This example does not work with Free Pascal 2.4.0
http://www.freepascal.org/docs-html/rtl/sysutils/ansiextractquotedstr.html

Error: Can't take the address of constant expressions

The example worked as follows:

Var S : PChar;

Begin
  S:='He said "Hello" and walked on';
  S:=PChar(AnsiQuotedStr(S,'"'));
  Writeln (S);
  Writeln(AnsiExtractQuotedStr(S,'"'));
End.


Is it an error or a change in the interface?

Thank you.

-- 
http://luisdigital.com




More information about the Lazarus mailing list