Book a Demo

Author Topic: Reversing Delphi code  (Read 2626 times)

David

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Reversing Delphi code
« on: March 02, 2005, 10:48:36 am »
I'd like to reverse engineer a fairly large set of existing Delphi code.  The trials I've done have worked fine at a code level, but didn't bring in existing comments describing operations and parameters.

The code is commented for use with a javadoc type documentation generator, example below.  Operations are commented in the implementation section, classes and attributes in the declaration.

Is there a way to modify the code templates (or any other way) to import this information into EA?  - I've tried the help documentation, but can't work it out.  I would also like to maintain the operation description, including parameters descriptions, in the implementation section - is this also possible?

Example:

{:Sets the name of this object to aName
@param nName the new name for the object
@param Option not used}
//------------------------------------------------------------------------------
procedure TNamedObject.SetName(const aName : string; Option : Integer=0);
//------------------------------------------------------------------------------
begin
 fName:=aName;
end;

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Reversing Delphi code
« Reply #1 on: March 02, 2005, 06:24:45 pm »
EA is currently only looking for operation comments in the declaration section.  There isn't currently any way to change this.

That's not the only problem I see with getting EA to import your notes though.  You've got an extra comment between the comment you want to be imported and the method implementation (or the declaration part of the implementation)  EA would only ever consider that comment to belong to the operation.

Simon

David

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Reversing Delphi code
« Reply #2 on: March 03, 2005, 07:05:47 am »
Hi Simon

Thanks - I'll have to find another way ... guess I can't have everything!

If I move these notes to the declaration part, (and remove the surplus comments) could I get the parameter notes moved into EA as parameter notes ?  

regards

David