Please Translate C++ To Delphi

Reply

Join Date: May 2009
Posts: 5
Reputation: Leila1 has a little shameless behaviour in the past 
Solved Threads: 0
Leila1 Leila1 is offline Offline
Newbie Poster

Please Translate C++ To Delphi

 
0
  #1
May 28th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,851
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Please Translate C++ To Delphi

 
0
  #2
May 29th, 2009
What does it do?
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,777
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 113
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: Please Translate C++ To Delphi

 
0
  #3
May 29th, 2009
C++ and delphi are not compatible , better learn the algorithm and code it in delphi afresh.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 5
Reputation: Leila1 has a little shameless behaviour in the past 
Solved Threads: 0
Leila1 Leila1 is offline Offline
Newbie Poster

Re: Please Translate C++ To Delphi

 
-1
  #4
Jun 26th, 2009
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. }
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: Please Translate C++ To Delphi

 
0
  #5
Jul 6th, 2009
What are you writing? An OS?

We're not a translation service. You may want to try the Looking to Hire forum.
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,851
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Please Translate C++ To Delphi

 
0
  #6
Jul 6th, 2009
It looked more like a malware writing kit to me.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC