System Namespace

Top  Previous  Next

What is translated > File layout > System Namespace

Type definitions, routines and constants of the Delphi system are reproduced for C++ in some files with the prefix "d2c_" and the code in these files is put into the namespace "d2c_system" for C++Builder and into the namespace "System" for other compilers.

These files are part of the files, which are installed with Delphi2Cpp II. There also is an extended System.pas, which has to be set in the translation options, to let Delphi2Cpp II know the signatures of the system routines.

 

 

For C++Builder the d2c-files are included directly, for other compilers there is an extra file "System.h" in which the d2c-files are included:

 

#include "d2c_system.h"     

#include "d2c_systypes.h"

#include "d2c_sysconst.h"

#include "d2c_syscurr.h"

#include "d2c_sysdate.h"

#include "d2c_sysobj.h"    

#include "d2c_openarray.h"  

#include "d2c_sysexcept.h"  

#include "d2c_sysmath.h"   

#include "d2c_sysstring.h"  

#include "d2c_sysfile.h"

#include "d2c_sysmem.h"

 

 

For C++ Builder in every produced C++ file there is a the statement

 

using namespace d2c_system;

 

 

For other compilers the "System.h" ends with

 

using namespace System;

 



This page belongs to the DelphiXE2Cpp11 Documentation

DelphiXE2Cpp11 home  Content