Book a Demo

Author Topic: IDL reverse engineering  (Read 7355 times)

paul.nikkinen

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
IDL reverse engineering
« on: April 29, 2013, 08:48:11 pm »
I have installed the Corba Add-In and thought that I should be able to reverse engineer my IDL files. At least the documentation say so.
But the documentation do not say how, and I can not see that I can select IDL as an input language when trying to import source code.
Anyone who now if it can be done and maybe how?

Paul

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: IDL reverse engineering
« Reply #1 on: April 29, 2013, 09:19:49 pm »
Have you read the help entry that comes out when searching for "idl reverse" ?

q.

paul.nikkinen

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: IDL reverse engineering
« Reply #2 on: April 29, 2013, 10:58:51 pm »
Yes I have read that help entry.
To me it looks like I am only able to generate code but not reverse engineer.
According to the help entry you refer to I should also be able to import idl files. And I found another topic in this forum where someone had reverse engineered idl files. But that topic did not say how...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: IDL reverse engineering
« Reply #3 on: April 30, 2013, 12:03:22 am »
There's a link to the CORBA  MDG you probably need to install. As you said it only can generate IDLs. So you should report a bug to Sparx, telling that their documentation is wrong.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: IDL reverse engineering
« Reply #4 on: April 30, 2013, 08:28:13 am »
The error isn't in the documentation. The add-in was created with reverse engineering support for IDL.

I'm not able to investigate now, but my suspicion is that it's somehow incompatible with the current version of EA.

paul.nikkinen

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: IDL reverse engineering
« Reply #5 on: April 30, 2013, 04:35:30 pm »
So there probably is a bug in EA or the Corba Add-In?
I am using version 9.2.920.

DanG83616

  • EA User
  • **
  • Posts: 180
  • Karma: +0/-0
    • View Profile
Re: IDL reverse engineering
« Reply #6 on: May 01, 2013, 05:09:52 am »
I remember that there is a trick to this. I'm remembering that it is necessary to open the code template editor (Ctrl+Shift+P). Does the IDL template show up in the Language pulldown?

Also, does the language show up in the language attribute for a class? If so, try doing a forward code-gen. After doing the phony, see if IDL shows up in the list of Source Types for importing source.

Sorry that I cannot remember the exact trick.

DanG83616

  • EA User
  • **
  • Posts: 180
  • Karma: +0/-0
    • View Profile
Re: IDL reverse engineering
« Reply #7 on: May 01, 2013, 05:37:03 am »
I found my old post. You must set the File Extensions set to ".idl" w/o the quotes. The leading dot is required. IOW "idl" won't work. It looks like out-of-the-box, the value is ";", for some reason. Use Tools-Options to permanently change the file extensions. Note that there are two places to specify: one is for extension to add when creating files and a separate one is for importing from source. The one for creating files must be dot-less and the import one must have the dot.

paul.nikkinen

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: IDL reverse engineering
« Reply #8 on: May 02, 2013, 04:28:49 pm »
Thank you, Dan!
This seems to have solved the problem!