[Lazarus] RE : RE : WinCE and version

Antonio Fortuny a.fortuny at sitasoftware.lu
Wed Jul 4 15:04:47 CEST 2012


Le 04/07/2012 14:02, Ludo Brands a écrit :
>> Did you notice that you are type-casting a string to a
>> PWideChar? Maybe the compiler does special hidden conversions
>> to make this work, but I would not be so reliant on hidden behaviors.
>>
>> If I were you I would do it like this:
>>
> Unit winceproc has a GetFileVersion that could be easily expanded to give
> build and release number.
>
> Replacing PChar(sProgram) with PWideChar(UTF8Decode(sProgram) in Antonio's
> code works also. Tested on a WinCE 5.0 device.
You are absolutely right, it works
Thanks

Antonio.

>
> Ludo
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>








More information about the Lazarus mailing list