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
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus