Author Topic: Delphi language features  (Read 4526 times)

joshua68it

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Delphi language features
« on: September 30, 2009, 09:49:09 pm »
Hello,

still now, it seems EA doesn't support many new delphi language features (http://edn.embarcadero.com/article/34324).

Can we hope it will support in a short term?

Best regards,

Giovanni

P.S. I'm wondering if anybody uses EA for Delphi projects... please let me know.

peppermint-bunny

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Delphi language features
« Reply #1 on: October 12, 2009, 10:20:52 pm »
I've tried to work with EA and Delphi but have failed miserably!  I've not upgraded to the latest version - I'm still using D6.   :'(

joshua68it

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Delphi language features
« Reply #2 on: October 13, 2009, 03:04:44 am »
I'm also write to sparx support, but nobody answer me.
Maybe will Delphi not supported anymore?

I love EA but I cannot use it anymore :'(

Please, can we "help" to develop Delphi EA support?

peppermint-bunny

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Delphi language features
« Reply #3 on: October 13, 2009, 05:25:05 am »
I've spent some time now looking at c#.  it looks promising for what I need to do.  However, I'd be interested in developing delphi support for EA.  Which version of delphi are you using?

joshua68it

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Delphi language features
« Reply #4 on: October 13, 2009, 06:30:27 pm »
I'm using D2007.
Until now I never had time to investigate how to work on EA integration.
Do you think is it possible to find a existent base module to extend and manage forward and reverse Delphi code engineering?

Thank you.
Giovanni

peppermint-bunny

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Delphi language features
« Reply #5 on: October 14, 2009, 01:55:00 am »
I haven't seen anything like this around.  How complex do you want your code to be?

In the first instance I guess we need to get up and running - ie doing simple things like connecting to EA, iterating through the model.  Modifying some attributes, adding new one, delete etc.  And the same thinkg with elements and connectors.   At the moment I've not been able to create a link between Delphi and EA.  Have you managed to do this?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8061
  • Karma: +118/-20
    • View Profile
Re: Delphi language features
« Reply #6 on: October 14, 2009, 09:21:06 am »
Just wanted to say that I haven't seen anything relating to Delphi come through support for quite a while.

As long as your using close to the latest build of EA, we should be able to get you up and running with the extra features fairly quickly.

(It would expedite matters if you included examples for anything you believe is missing.)

peppermint-bunny

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Delphi language features
« Reply #7 on: November 07, 2009, 09:14:14 pm »
Simon,

Can I take you up on you kind offer of help?

I'm using Delphi and am trying to iterate thro my model.  I can create a repository com object and can access .MODELS and can get .MODELS.COUNT.

But I'm struggling to go further. The sticking point is the ubiquitous GetAT(i: integer) call which returns an IDispatch.  I can't use this interface pointer to get anywhere.  
I'd like to get a list of all packages, with their PackageID, name, and count of child packages, diagrams for starters.
I've tried casting the IDispatch to IDualPackage and to TPackage without success.  

Can you advise me how to interrogate the Models in the Repository object using Delphi?

Many thanks

peppermint-bunny

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Delphi language features
« Reply #8 on: November 07, 2009, 09:14:22 pm »
Simon,

Can I take you up on you kind offer of help?

I'm using Delphi and am trying to iterate thro my model.  I can create a repository com object and can access .MODELS and can get .MODELS.COUNT.

But I'm struggling to go further. The sticking point is the ubiquitous GetAT(i: integer) call which returns an IDispatch.  I can't use this interface pointer to get anywhere.  
I'd like to get a list of all packages, with their PackageID, name, and count of child packages, diagrams for starters.
I've tried casting the IDispatch to IDualPackage and to TPackage without success.  

Can you advise me how to interrogate the Models in the Repository object using Delphi?

Many thanks

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8061
  • Karma: +118/-20
    • View Profile
Re: Delphi language features
« Reply #9 on: November 09, 2009, 01:22:50 pm »
You can't cast COM objects like that.  You'll need to call QueryInterface on them.  I think you pass in IID_IPackage.