neodatatype
Well-known member
Thanks to VolteFace (and some days of imprecation for the non/not good-documentation about it) I solved the problem #1.
Now the #2
I created in my exported class a property like this:
As you can see is an object type, that will correctly converted to a Variant COM type.
All works well, but if I do this from VB6
I get the VB error "Object required" 424.
It works if I use this:
I dont understand why.
Someone can tell me?
Thanks
Now the #2
I created in my exported class a property like this:
C#:
object p_Value;
public object Value
{
get { return p_Value; }
set { this.p_Value = value; }
}
As you can see is an object type, that will correctly converted to a Variant COM type.
All works well, but if I do this from VB6
Code:
myObj.Value = 123
I get the VB error "Object required" 424.
It works if I use this:
C#:
public void SetValue(object value)
{
this.p_Value = value;
}
Code:
Call myObj.SetValue(123)
I dont understand why.
Someone can tell me?
Thanks