Micha Nelissen wrote: >> Sample 2: This one compiles with Delphi (again, it inserts necessary >> conversion Wide -> Ansi), but does not compile with FPC, neither in >> objfpc nor in Delphi mode. > > The (should be) conversion code seems to be missing. Never mind this one, I read SetLength instead of SetString. Micha