![]() |
Pointer Delphi und C++
Hi Leute,
ich habe eine C++ Dll mit zwei Funktionen die einen Pointer haben. Hier die Deklarationen: ------------------------------------------------------------------------------------------------------------- c++: long LSTestDLLOpen(long Flags,long *phandle); Delphi: function LSTestDLLOpen(Flags : longint; phandle : pointer): longint cdecl; external 'CANopen.dll'; ------------------------------------------------------------------------------------------------------------- und ------------------------------------------------------------------------------------------------------------- c++: long MCxReport(long handle,long CellVec,long Flags,char *pFileName); Delphi: function MCxReport(handle,CellVec,Flags : longint; pFileName: PChar): longint cdecl; external 'CANopen.dll'; ------------------------------------------------------------------------------------------------------------- Könnt ihr mir sagen, ob ich da richtig liege und wenn nein, wie ist es richtig. Danke im voraus für eure Hilfe. Viele Grüße xthing |
Re: Pointer Delphi und C++
Moin xthing,
sieht soweit richtig aus. Bist Du aber sicher, dass es cdecl ist und nicht, wie so oft stdcall? |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:19 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 by Thomas Breitkreuz