Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: charge on October 08, 2004, 02:24:20 am

Title: Error Using .NET Add-ins
Post by: charge on October 08, 2004, 02:24:20 am
There is no variant type in .NET

When I create an add-in in VB.NET I have to implement the interface EA_GetMenuItems(....) as Variant in a COM class

Until version 4.10.737 I used string() as returntype. In version 4.10.738 it does no longer work.

Any suggestions to fix this problem???
Title: Re: Error Using .NET Add-ins
Post by: charge on October 19, 2004, 04:22:59 am
The likely reason for this error is that they have improved the interface to .net, and are now providing a strongly typed assembly: Interop.EA.dll.

You should de-reference EA in your VS project, and reference Interop.EA.dll from \program files\sparx systems\ea.

The interop file you compile with should also be included with your installations.
Title: Re: Error Using .NET Add-ins
Post by: Nick on January 31, 2005, 01:19:22 am
Hi,

Have you tried using 'object' as your return type?

Cheers

Nick :)
Title: Re: Error Using .NET Add-ins
Post by: charge on January 31, 2005, 01:46:39 am
using 'object' as return type doesn't fix the problem. You should use the  Interop.EA.dll from EA and then it works fine !