Hi,
I am working with MathCad 13 and Visual Studio 2005. I am trying to create a C# object, make it into a COM callable object, and then use that object from within MathCad.
I have played with COM objects created in VB6 and have been able to use them with in VB Script within MathCad.
For example, this code works as part of a button object in a MathCad worksheet.
Sub PushBtnEvent_Exec(Inputs,Outputs)
Dim b
MsgBox "Exec"
Set b = GetObject( "", "VerySimpObject.MyClass" )
MsgBox "after create object " & b.Name
End Sub
In the above case, 'VerySimpObject' is a VB6 ActiveX DLL. When it is executed, there are two MsgBoxes as expected.
When I try to do this with a simple C# object, I get an error on the GetObject call. The first MsgBox displays as expected, but then an error is reported:
(null)
Line:18 Error:0
(null)
Is it possible to invoke a .Net object from MathCad 13?
Thanks,
Bob