943,920 Members | Top Members by Rank

Ad:
May 28th, 2009
0

Please Translate C++ To Delphi

Expand Post »
Hi All User

Please Translate C++ To Delphi

Thank You Very Much

<snip>
Last edited by John A; Aug 7th, 2009 at 10:17 pm. Reason: removed questionable url
Similar Threads
Reputation Points: -11
Solved Threads: 0
Newbie Poster
Leila1 is offline Offline
5 posts
since May 2009
May 29th, 2009
0

Re: Please Translate C++ To Delphi

What does it do?
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
May 29th, 2009
0

Re: Please Translate C++ To Delphi

C++ and delphi are not compatible , better learn the algorithm and code it in delphi afresh.
Reputation Points: 769
Solved Threads: 128
Banned
ithelp is offline Offline
1,910 posts
since May 2006
Jun 26th, 2009
-1

Re: Please Translate C++ To Delphi

Hi All User

Please Translate C++ To Delphi

Thank You Very Much

Pascal and Delphi Syntax (Toggle Plain Text)
  1. int Generate_Reloction_Map(BYTE* Reloc_Seg, DWORD Func_RVA, int Func_Size, DWORD* Reloc_Map)
  2. {
  3. BYTE* Reloc_Ptr = Reloc_Seg;
  4. int _rel_Cnt = 0;
  5. while (*(DWORD*)Reloc_Ptr)
  6. {
  7. DWORD Reloc_RVA = ((DWORD*)Reloc_Ptr)[0];
  8. DWORD Block_Size = ((DWORD*)Reloc_Ptr)[1];
  9. for (int i = 0; i < (Block_Size - 8) / 2; i++)
  10. {
  11.  
  12. if ((Reloc_RVA + (((WORD*)(Reloc_Ptr + 8))[i] & 0xFFF) >= Func_RVA) &&
  13. (Reloc_RVA + (((WORD*)(Reloc_Ptr + 8))[i] & 0xFFF) < Func_RVA + Func_Size))
  14. {
  15. if (Reloc_Map)
  16. Reloc_Map[_rel_Cnt] = Reloc_RVA + (((WORD*)(Reloc_Ptr + 8))[i] & 0xFFF);
  17. _rel_Cnt++;
  18. }
  19. }
  20. Reloc_Ptr += Block_Size;
  21. }
  22. return _rel_Cnt;
  23. }
Reputation Points: -11
Solved Threads: 0
Newbie Poster
Leila1 is offline Offline
5 posts
since May 2009
Jul 6th, 2009
0

Re: Please Translate C++ To Delphi

What are you writing? An OS?

We're not a translation service. You may want to try the Looking to Hire forum.
Featured Poster
Reputation Points: 1140
Solved Threads: 229
Postaholic
Duoas is offline Offline
2,039 posts
since Oct 2007
Jul 6th, 2009
0

Re: Please Translate C++ To Delphi

It looked more like a malware writing kit to me.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: Could you tell me how can I do this question?
Next Thread in Pascal and Delphi Forum Timeline: how to use RegexBuddy? can you help me.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC