Author Topic: Addin with Vb6  (Read 5836 times)

rainer.buhl

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Addin with Vb6
« on: May 28, 2004, 04:34:25 am »
what are the main steps to create a addin with vb6?

I use the the project type "activex-dll" and implements the interface " EAAddInTemplate.Addin". The DLL is automaticly registred by VB6. I update the registry for the addin shown in help (and with all possibles sections of "EAAddins"). But nothing works! ???

Now I installed EA 4.0 and I don't have any problems. The instructions for AddIns in the new help file are very good! :)

much regards

Rainer Buhl
« Last Edit: May 29, 2004, 04:35:43 am by rainer.buhl »

Angy

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Addin with Vb6
« Reply #1 on: August 25, 2004, 01:54:03 am »
Hello!

I have now your same problem..
I registered my dll but nothing works..
I think I have problem with implementation of the  interface "EAAddinTemplate.Addin"
.
In which way I must implement it?

Much regards

Phil_Bachmann

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Addin with Vb6
« Reply #2 on: August 30, 2004, 12:33:07 am »
Since 4.0 EA uses a new mechanism for defining Add-ins, and doesn't rely on addn_tmpl.tlb.

Refer to the help for more information, searching for EA_Connect is a good place to start.

Phil Bachmann
Sparx Systems

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Addin with Vb6
« Reply #3 on: September 13, 2004, 07:25:46 am »
Hi Phil,

Why did you go away from the type library approach? IMO it made it very easy to create an add-in using ActiveX wizards such as the one in Delphi.

Now, I am not sure how to do it, and frankly I don't think the online help is very clear on the topic. This is a quote from a freshly downloaded chm file:
Quote
Add-ins are ActiveX COM objects which conform to a particular COM interface. This interface is defined in the type library, addn_tmpl.tlb, which is installed with EA and placed in the same folder that contains EA. (Typically this is C:\Program Files\Sparx Systems\EA).  

but in another place it says that the type library is no longer used. So what do I do instead?

Mikkel

Phil_Bachmann

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Addin with Vb6
« Reply #4 on: September 13, 2004, 04:43:11 pm »
G'day Mikkel,

>> Why did you go away from the type library approach? IMO it made it very easy to create an add-in using ActiveX wizards such as the one in Delphi.

Yes I agree it is easier that way.  However, at Sparx, we are always improving the software - with new releases ever two weeks.  The add-in definition changes several times a year, and publishing a new typelib would cause irritation to people with existing add-ins.

So we've got a more flexible approach.

>> Now, I am not sure how to do it, and frankly I don't think the online help is very clear on the topic. This is a quote from a freshly downloaded chm file:
but in another place it says that the type library is no longer used. So what do I do instead?

We have removed the offending passage from the help file.

I will be making a Delphi sample soon.

Basically you define a dispatch interface and add whichever event methods you want to receive.

Phil