conversion C++ to Delphi

02/02/2010 11:20 dwar#1
Hi guys,
Who can help with conversion C++ code to Delphi?
2:
Thx
02/03/2010 16:50 flo8464#2
Quote:
b) What does this mean “for ( ; ; )”?
It's looping for ever or until it's left by return/break.

Quote:
c) What actually do PopFront and PushBack?
Popfront removes the first element at the beginning of the list, pushback adds a new element at the end of the list.
02/04/2010 03:19 dwar#3
Thx.
What about “CArray<byte>”? Is it declaration of dynamic byte array?
And how can I rewrite “ %= “, “>>= “ ?
02/04/2010 12:25 flo8464#4
Quote:
What about “CArray<byte>”? Is it declaration of dynamic byte array?
That is neither part of the STL or boost, it is MFC-Bullshit.
First hit Google: [Only registered and activated users can see links. Click Here To Register...]

Quote:
And how can I rewrite “ %= “, “>>= “ ?
The first:

"var %= 4" means "var = var modulo 4" (I think "mod" is the expression in Delphi)

Second:

"var >>= 4" means "var = var >> 4", shifting 4 bits to the right, guess "shr" shifts to the right in Delphi.
02/04/2010 13:47 dwar#5
thx alot for helping.