t2t-soft

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
05/18/26
Delphi2Cpp 2.7: Translation heuristics [more...]

11/18/25
Delphi2Cpp 2.6: Delphi Interfaces [more...]



"We have successfully completed the projects, and the applications are (for the most part) already running at our customers' sites."





"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



"Though we have not finished the conversion yet, I'm glad that we've found you and could transform Eurocap to C++ with the help of Delphi2CB and you. (And I'm also glad that we could help you to make Delphi2CB better😉)"


Gáspár Huba


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

Minimal Website
 
Minimal Website is made with TextTransformer

TextTransformer
 
TextTransformer is made with Borland C++Builder

  Borland