Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#1

Zeigertyp von C nach Delphi

  Alt 16. Aug 2007, 17:36
Hi,

Ich habe sowas hier vorliegen:

Code:
typedef void (__cdecl *PFNFCIFREE)(void *memory);
#define FNFCIFREE(fn) void __cdecl fn(void *memory)
das habe ich bisher so übersetzt:

FNFCIFREE = procedure (memory: Pointer); cdecl; stimmt das?

Und hieß das, dass folgendes

Code:
typedef void * (__cdecl *PFNFCIALLOC)(ULONG cb);
#define FNFCIALLOC(fn) void * __cdecl fn(ULONG cb)
dann dem entsprechen würde:

FNFCIALLOC = function (cb: ULONG): Pointer; cdecl; ?

Gruß
Neutral General
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat