I have a "old" system that was coded in FPC 2.6.5.
Today I had to change something in the code and now I need to update
to FPC 3.0 and Lazarus 1.9.
This system uses a COM object. I made a class to wrap the configuration.
So, all string arguments in this class is WideString based.
The SetLicence method will receive a WideString but the source is a "string".
IniFile.ReadString('TheLib', 'license', '')
As you know, IniFile.ReadString returns a "string" and some internal
conversion is happening and the licence is not valid anymore.
If I put the licence as a string directly, it works:
How can I change my code to work properly using Ini files, strings and
Lazarus mailing list