Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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???
-
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.
-
Hi,
Have you tried using 'object' as your return type?
Cheers
Nick :)
-
using 'object' as return type doesn't fix the problem. You should use the Interop.EA.dll from EA and then it works fine !