Author Topic: Error Using .NET Add-ins  (Read 3791 times)

charge

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Error Using .NET Add-ins
« 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???

charge

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Error Using .NET Add-ins
« Reply #1 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.

Nick

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Error Using .NET Add-ins
« Reply #2 on: January 31, 2005, 01:19:22 am »
Hi,

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

Cheers

Nick :)

charge

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Error Using .NET Add-ins
« Reply #3 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 !