[Lazarus] String vs WideString

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Aug 12 22:49:56 CEST 2017


On Sat, 12 Aug 2017 17:43:29 -0300
"Marcos Douglas B. Santos via Lazarus" <lazarus at 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


More information about the Lazarus mailing list