Support for the Milan Intelligent interface, sold by Money Controls as the Paylink USB unit and for the earlier PCI card version.
Moderators: aardvark, davebush, Admin
-
markh51
- Posts: 15
- Joined: Mon Nov 12, 2007 9:09 pm
Post
by markh51 »
How do I display the firmware version correctly in Delphi ?
I am using IntToHex(FirmwareVersion(nil,nil),

) but can't seem to display the version as it says in the manual.
Quote:
The firmware version, as a 32 bit integer. This is normally shown as 4 x 8 bit numbers separated by
dots.
Can you please help ?
-
davebush
- Posts: 490
- Joined: Fri Oct 22, 2004 12:20 pm
Post
by davebush »
I can't see anytthing wrong in what you've written. As long as you have previously had a successful return from OpenMHE it should have worked.
What was the result of the call?
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
-
markh51
- Posts: 15
- Joined: Mon Nov 12, 2007 9:09 pm
Post
by markh51 »
The problem with using the above code is the output is displayed as:
02010A09
I want to be able to display it like in the MilanDiag application.
Thanks.
-
davebush
- Posts: 490
- Joined: Fri Oct 22, 2004 12:20 pm
Post
by davebush »
You need something like:
Code: Select all
format('%d.%d.%d.%d', [(FirmwareVersion shr 24 ) and $ff,
(FirmwareVersion shr 16 ) and $ff,
(FirmwareVersion shr 8 ) and $ff,
(FirmwareVersion ) and $ff]) ;
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
-
markh51
- Posts: 15
- Joined: Mon Nov 12, 2007 9:09 pm
Post
by markh51 »
Thanks... will give that a try.