fiogf49gjkf0d I've got a very basic .NET extension project (obviously the full project will be much bigger) but I'm having trouble getting it to work. I'm using SalesLogix v7.5.2, and have created a simple .NET 3.5 class library:
using Sage.SalesLogix.NetExtensions; using System.Windows.Forms;
namespace SLxTest { public class Class1 : BaseRunnable { public override object Run(object[] args) { MessageBox.Show("Hello World"); return "Hello"; } } }
And the calling code in SalesLogix is on the OnCreate event handler:
Sub AXFormCreate(Sender) Dim ext Dim id
ext = Application.Managed.Create("SLxTest", "SLxTest.Class1") Set id = Application.Managed.Run(ext) End Sub
On the 'Set id...' line I get the 'Object required: 'Application.Manager.Run(...)'' error message from VBScript. I've looked around and checked the 5 .dll files (listed in 'RegisterSLXNetExtentions.bat' file, which also appears to execute correctly). Strangely enough, when stepping through at breakpoint in VBScript, the 'ext' variable is correctly populated with some GUID looking value. The .NET extension is also released to everyone, so I don't think it's a release problem.
Any help would be greatly appreciated...
Dan Brentley
|