Registriert seit: 4. Jun 2004
Ort: Nordhausen
2.214 Beiträge
Delphi 7 Enterprise
|
Re: [C => Delphi] Was macht FIELD_OFFSET?
26. Jun 2006, 12:33

Zitat von Daniel G:
In welcher Headerdatei ist dieses Macro deklariert?
In der Winnt.h
Code:
//
// Calculate the byte offset of a field in a structure of type type.
//
#define FIELD_OFFSET(type, field) ((LONG)(LONG_PTR)&(((type *)0)->field))
André "A programmer is just a tool which converts caffeine into code",  daran wirds wohl liegen, dass ich Abends nie pennen kann

Zitat von Luckie:
Nicht nur dass ihr offtopic geworden seid, jetzt werdet ihr selber im Offtopic noch offtopic
|