On Sat, 12 Aug 2017 17:43:29 -0300
"Marcos Douglas B. Santos via Lazarus" <lazarus@lists.lazarus-ide.org>
wrote:

>[...]
> > What encoding has the ini file?  
> 
> ANSI. A simple text file on Windows with only ANSI chars.

Which one? Do you mean Windows CP-1252?

 
>[...]
> Warning: Implicit string type conversion from "AnsiString" to "WideString"

Explicit type cast:

Lib.SetLicense(
   WideString(IniFile.ReadString('TheLib', 'license', ''))
); 

Mattias
-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to