texttransformer.jpg

This article can be obsolete: Actual documentation online

Special VCL-functions


There aren't some VCL functions in C++ and have to be expressed differently (incomplete list):

 Delphi   C++   Condition 
 Assigned( foo )   foo != NULL 
 Copy(foo, 1,3)   foo.SubString(1, 3)   for strings 
 Dec(i)   i-- 
 Dec(i,2)   i -= 2 
 Delete(foo, 1,3)   foo.Delete(1, 3)   for strings 
 Dispose(foo)   delete foo 
 Exclude(foo, bar)   foo >> bar   for sets 
 High(enum_type)   größter enum-Wert 
 Inc(i)   i++ 
 Inc(i,2)   i += 2 
 Include(foo, bar)   foo << bar   for sets 
 Length(foo)   foo.Length ( )   for strings 
 Low(enum_type)   kleinster enum-Wert 
 New(p)   p = new type_of_p   only works, if p is an identifier 
 Pos(foo, bar)   bar.Pos ( foo );   for strings 
 PAnsiChar(foo)   foo.c_str()   for strings 
 PAnsiChar(foo)   char(foo)   else 
 SetLength(foo, bar)   foo.SetLength ( bar );   for strings 


   deutsch Deutsch

 

 
Latest News
01/29/24
Aurora2Cpp: Delphi 7 translator [more...]

10/19/23
Delphi2Cpp 2.3: Conversion of DFM files [more...]



"Thanks for your great work, really appreciate the work you have done on zlib and compiling ... test case."


Mattewada, Udayabhaskar
Nokia India 02/01/2021




[from case study...]

"A masterpiece -- Delphi2Cpp has exceeded all my expectations by far."


Tony Hürlimann
virtual-optima 08/20/2011



"First off, I have to say WOW! Delphi2Cpp is doing a *fantastic* job!"


Daniel Flower
linkrealms 01/15/2011


 
This website is generated from plain text with [Minimal Website ]

Minimal Website
Minimal Website is made with TextTransformer

TextTransformer
TextTransformer is made with Borland CBuilder

  borland