Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   HID Module nicht kompilierbar in x65 aber schon in 32bit (https://www.delphipraxis.net/186075-hid-module-nicht-kompilierbar-x65-aber-schon-32bit.html)

wschrabi 31. Jul 2015 18:40

HID Module nicht kompilierbar in x65 aber schon in 32bit
 
Hallo,
Ich habe ein Prg in 32 bit unter XE6 programmiert, das gut läuft. Doch wenn ich es für x64bit compilieren will kommt da ein Error:
E2089: Ungültige Typumwandlung

bei (TWMDeviceChange(Msg).Event = DBT_DEVNODES_CHANGED)

Delphi-Quellcode:
// gets all the Windows events/messages directly

procedure TJvHidDeviceController.EventPipe(var Msg: TMessage);
begin
  // sort out WM_DEVICECHANGE : DBT_DEVNODES_CHANGED
  if (Msg.Msg = WM_DEVICECHANGE) and (TWMDeviceChange(Msg).Event = DBT_DEVNODES_CHANGED) then
    if not FInDeviceChange then
    begin
      FLParam := Msg.LParam;
      FInDeviceChange := True;
      DeviceChange;
      FInDeviceChange := False;
    end;
  Msg.Result := DefWindowProc(FHWnd, Msg.Msg, Msg.wParam, Msg.lParam);
end;
Kann mir jemand mitteilen, wie ich das Problem lösen kann? DANKE

wschrabi 31. Jul 2015 20:13

AW: HID Module nicht kompilierbar in x65 aber schon in 32bit
 
Ich hab die Lösung:
http://stackoverflow.com/questions/2...nnot-be-opened

EInfach die neue JEDI (JCL und JVCL) installieren. Dann sind die Classes auf den neuesten Stand und mein Prg läuft 32/64 bit ready!:-D
http://sourceforge.net/projects/jvcl...e=typ_redirect


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:31 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz