![]() |
AW: Delphi nach C++
Zitat:
|
AW: Delphi nach C++
Zitat:
Bin gerade die Bytes am zusammenzählen für die Definitions Datei. bsp.
Delphi-Quellcode:
function KVideo_GetVersion: longint; stdcall;
KVideo_GetVersion name 'KVideo_GetVersion@4', //4Bytes LongInt
Delphi-Quellcode:
Weis jemand wie ich diese bei Types zusammen rechne?
function KVideo_GetLastError: pWideChar; stdcall;
KVideo_GetLastError name 'KVideo_GetLastError@2', // WideChar 2Bytes (Pointer noch extra addieren?) Pointer 4Bytes summe gesamt 6? oder reicht nur der Pointer bzw. nur WideChar
Delphi-Quellcode:
Oder gibt es ein Tool das dass für mich macht? LOL..
function KVideo_Initialize(MediaWindow: HWND; EventNoticeFunc: CBEventNotice): BOOL; stdcall; //HWND = LongWord 4Bytes, Bool = LongBool 4Bytes, CBEventNotice ?????
TPlayerEvent = (PlayEnded, ErrorEnded); CBEventNotice = procedure(Event: TPlayerEvent); stdcall; KVideo_Initialize name 'KVideo_Initialize'@ ?????, EDIT: Ich hoffe das stimmt so weit
Delphi-Quellcode:
HWND = LongWord 4Bytes
function KVideo_Initialize(MediaWindow: HWND; EventNoticeFunc: CBEventNotice): BOOL; stdcall; //HWND = LongWord 4Bytes, Bool = LongBool 4Bytes, CBEventNotice ?????
TPlayerEvent = (PlayEnded, ErrorEnded); CBEventNotice = procedure(Event: TPlayerEvent); stdcall; KVideo_Initialize name 'KVideo_Initialize'@ ?????, Bool = LongBool 4Bytes CBEventNotice = 4Bytes Pointer auf die procedure summe = 12
Delphi-Quellcode:
Ob ich das enum TPlayerEvent noch addieren muss weis ich leider nicht :pale: wäre dann + 1
KVideo_Initialize name 'KVideo_Initialize@12',
gruss |
AW: Delphi nach C++
Habe die Datei nochmal überarbeitet wenn es so nicht geht bitte sagen warum.
Kann es jetzt leider noch nicht testen. gruss |
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:04 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz