Book a Demo

Author Topic: Support for COM Technology  (Read 2680 times)

ronid

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Support for COM Technology
« on: January 31, 2007, 11:40:24 pm »
Hi

I am in the process of evaluating the software for a company I work for.

We use quite extensively COM Technology.
I would like to know what are the software capabilities for reverse engineering and code generation with regards to COM.

Thanks,
Roni.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Support for COM Technology
« Reply #1 on: February 01, 2007, 03:59:32 am »
Roni,

Are you asking whether EA can reverse engineer a COM executable (or DLL). If so, it does not do this, at least not at this time. [Perhaps you might be able to get somewhere is there was a .Net interop involved.]

If you mean reverse engineering COM source code you're likely in luck. EA will happily reverse engineer several languages. Take a look at the docs and just try it with something. You might want to ensure you code language is set for the target package and diagram. EA likes to default to Java, which could be an issue for COM. You may have to edit (after making a safe copy) the EABase (I think) model to convince EA to start with VB (for example).

Finally, do you mean can you reverse engineer and generate code via automation through a COM interface? If so, the answer is yes, sort of. EA has some ability to do this, and is getting better. You'll have to read and write files pretty often, as EA has yet to reach the point of doing this in memory streams. Take a look in the docs. Try the automation section and look at the Project object - under Reference, not Project Interface (XML), which is something slightly different. Take a look at the GeneratePackage and ImportDirectory methods first (look way down) and go from there.

HTH, David
No, you can't have it!

ronid

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Support for COM Technology
« Reply #2 on: February 01, 2007, 05:26:03 am »
Hi,

My first goal is to reverse engineering my existing source code which is written using COM into the appropriate class diagrams.

My second goal is maintain these models, and after doing some changes to the models, to synchronize the changes with my source code.

Thanks,
Roni

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Support for COM Technology
« Reply #3 on: February 01, 2007, 01:08:16 pm »
You can probably do so. Take a look at the documentation. Also browse the Resources page on the Sparx site.

Finally, play around a bit, making sure to set the language setting of your target packages - you'll know what I mean when you get there - before the first import. Search my recent postings for a bit more on that.

At this point you'll have some questions. Search this forum, and be persistent. Go back at least 999 days to get lots of information.
No, you can't have it!