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
09/03/15
Delphi2Cpp 1.7.0 New translation options [more...]

01/30/12
Delphi2Cpp 1.6.3 Better construction of objects [more...]



"We successfully used your tool for migrating our code base to C++."


Roel Vliegen
magnaview 09/21/2015



[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