[Lazarus] String vs WideString

Marcos Douglas B. Santos md at delfire.net
Thu Aug 17 14:40:44 CEST 2017


On Wed, Aug 16, 2017 at 12:38 PM, Juha Manninen via Lazarus
<lazarus at lists.lazarus-ide.org> wrote:
> On Wed, Aug 16, 2017 at 5:48 PM, Marcos Douglas B. Santos via Lazarus
>> Are you saying that I need to do this?
>> (following the firt example on this thread)
>
> No, if the parameter is WideString, not a pointer PWideChar, you can
> just call it like you did. Suppress the warning as Mattias told if it
> bothers you. You can also make a helper function so the conversion
> happens in one place.
> Yes, for OLE you need WideString.

"Suppress the warning as Mattias told if it bothers you"

Of course bothers me.
Sorry, but every single warning is a... warning... that needs to be resolved.
If this is not a problem (or a possible future problem), the compiler
should not give us a warning, right?

Best regards,
Marcos Douglas


More information about the Lazarus mailing list