Invalid version routines

F-IN-BOX for Delphi / Builder C++ / VCL
GfxBro
Posts: 5
Joined: Fri Jul 08, 2011 1:06 pm

Invalid version routines

Postby GfxBro » Sat Sep 14, 2013 2:31 pm

Routines GetInstalledFlashVersion() and GetUsingFlashVersion() are buggy, exactly conversion from 2 cardinals to one.

Version 11.8.800.164 is reported as 11.11.32.168, so minor and release part are incorect.

What for is this conversion? Please fix it.

whome
Posts: 9
Joined: Mon Sep 04, 2006 7:13 am

Postby whome » Mon Oct 21, 2013 12:59 pm

Using this kind of versionToString? I think its Flash11.ocx issue, maybe TFlashPlayer is not certified run on Flash11 activex plugin.

Flash version: 11.9.188.169, ocx file is 11.7.700.169
Flash version: 11.12.132.117, ocx file is 11.9.900.117
Flash version: 10.3.183.10, ocx file is 10.3.183.10

Code: Select all

function TFlashFrame.getFlashVersion(): String;
var
  dwInstalledFlashVersion: DWORD;
begin
  Result := '';
  //dwInstalledFlashVersion := FlashPlayerControl.GetInstalledFlashVersion;
  dwInstalledFlashVersion := FlashPlayerControl.GetUsingFlashVersion;

  if dwInstalledFlashVersion = 0 then Exit;

  Result := Format(
        'Flash version: %d.%d.%d.%d',
        [
          HIBYTE(HIWORD(dwInstalledFlashVersion)),
          LOBYTE(HIWORD(dwInstalledFlashVersion)),
          HIBYTE(LOWORD(dwInstalledFlashVersion)),
          LOBYTE(LOWORD(dwInstalledFlashVersion))
        ]
      );
end;

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Oct 24, 2013 3:32 pm

Hello all,

The problem is that DWORD is not enough to store a version, because version is WORD.WORD.WORD.WORD, so we need 4 WORDs.

New version will be available today or tomorrow, with new methods to get version.

Thank you!
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 22 guests

cron