Book a Demo

Author Topic: Reverse Engineering Visual Basic 6.0 and Comments  (Read 4000 times)

cmpressl

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Reverse Engineering Visual Basic 6.0 and Comments
« on: January 11, 2005, 12:42:52 pm »
Hello,
 I am evaluating EA for my company, and I am trying to reverse engineer one of our Visual Basic 6.0 projects.  I can import the project successfully, but my question is with regard to comments in the code.  I can get method and property comments to come into the diagram, but I cannot seem to get comments at the top of the class file to import into the class "Notes" section.  

Does anyone have any tips on how to accomplish this?  Are there any best practices for commenting the VB6 code so that it will import correctly?

Thanks,
Chad

thomaskilian

  • Guest
Re: Reverse Engineering Visual Basic 6.0 and Comme
« Reply #1 on: January 12, 2005, 04:03:01 am »
Actually not. But I'd try to forward engineer one class and see what EA creates, then make source changes and see whether they're reflected in the model.

cmpressl

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Reverse Engineering Visual Basic 6.0 and Comme
« Reply #2 on: January 13, 2005, 06:31:06 am »
I have played around with reverse engineering the code, then adding comments to the class Notes section, and the forward engineering it back to the source code.  Doing this, I get the following in my source class file:
Option Explicit
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''
''  clsProductDisplay.cls
''  Implementation of the  Class clsProductDisplay
''  Generated by Enterprise Architect
''  Created on:      13-Jan-2005 09:24:50 AM
''
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'' These are comments
'' put in the Notes: section
'' on the class diagram


The problem is when I change the text for the comments and reverse engineer the code, the text does not import into the notes section.  It appears that the forward engineer pushes class comments, but the reverse engineer does not pull them back.

thomaskilian

  • Guest
Re: Reverse Engineering Visual Basic 6.0 and Comme
« Reply #3 on: January 13, 2005, 07:22:04 am »
Sparx should comment on that...

TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: Reverse Engineering Visual Basic 6.0 and Comme
« Reply #4 on: January 13, 2005, 11:52:06 am »
Synching comments is optional.  Check your generation options and see if both Generate and Reverse are checked for comments
« Last Edit: January 13, 2005, 11:52:29 am by TrtnJohn »

cmpressl

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Reverse Engineering Visual Basic 6.0 and Comme
« Reply #5 on: January 13, 2005, 11:55:42 am »
Generate and Reverse are both checked under the Comments frame