DWORD

Top  Previous  Next

What is translated > Types > API Integration > DWORD

DWORD is an example for the API integration. DWORD is defined in Winapi,Windows.pas as:

 

  DWORD = System.Types.DWORD;

  {$EXTERNALSYM DWORD}

 

 

and in System.Types.pas it is defined as:

 

  DWORD = FixedUInt;

  {$EXTERNALSYM DWORD}

 

 

 

Because in both cases the EXTERNALSYM directive is applied, these definitions are ignored and DWORD simply remains DWORD at the translation to C++. Indeed DWORD is defined in the Windows API in minwindef.h as:

 

 

typedef unsigned long       DWORD;

 

 

 

It's not necessary to know, that FixedUInt is defined  in System.pas for Windows as

 

FixedUInt = LongWord;

 

 

In the type-map you can see:

 

 

LongWord

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content