[Lazarus] RE : RE : WinCE and version

Ludo Brands ludo.brands at free.fr
Wed Jul 4 14:02:20 CEST 2012


> 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.

Ludo





More information about the Lazarus mailing list