> 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


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to