| | |
Please Translate C++ To Delphi
![]() |
C++ and delphi are not compatible , better learn the algorithm and code it in delphi afresh.
•
•
Join Date: May 2009
Posts: 5
Reputation:
Solved Threads: 0
Hi All User
Please Translate C++ To Delphi
Thank You Very Much
Please Translate C++ To Delphi
Thank You Very Much
Pascal and Delphi Syntax (Toggle Plain Text)
int Generate_Reloction_Map(BYTE* Reloc_Seg, DWORD Func_RVA, int Func_Size, DWORD* Reloc_Map) { BYTE* Reloc_Ptr = Reloc_Seg; int _rel_Cnt = 0; while (*(DWORD*)Reloc_Ptr) { DWORD Reloc_RVA = ((DWORD*)Reloc_Ptr)[0]; DWORD Block_Size = ((DWORD*)Reloc_Ptr)[1]; for (int i = 0; i < (Block_Size - 8) / 2; i++) { if ((Reloc_RVA + (((WORD*)(Reloc_Ptr + 8))[i] & 0xFFF) >= Func_RVA) && (Reloc_RVA + (((WORD*)(Reloc_Ptr + 8))[i] & 0xFFF) < Func_RVA + Func_Size)) { if (Reloc_Map) Reloc_Map[_rel_Cnt] = Reloc_RVA + (((WORD*)(Reloc_Ptr + 8))[i] & 0xFFF); _rel_Cnt++; } } Reloc_Ptr += Block_Size; } return _rel_Cnt; }
What are you writing? An OS?
We're not a translation service. You may want to try the Looking to Hire forum.
We're not a translation service. You may want to try the Looking to Hire forum.
![]() |
Similar Threads
- delphi conversion software (Pascal and Delphi)
- Translate from Delphi to C++ (C++)
- Looking for a Senior DELPHI Developer (Software Development Job Offers)
- How to show a hard disks serial number and other volume information (C)
- Translate an algorithm to C program (C)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Could you tell me how can I do this question?
- Next Thread: how to use RegexBuddy? can you help me.
| Thread Tools | Search this Thread |






