A
Alfonso
Hello,
I am implementing a hanwritting recognition benchmark, and when
calling from
my C# code the API of a HWr engine I have the following
Code:
int[] strokes = {myInt1, myInt2, myInt3, myInt4};
ink.AddStroke(strokes);
problem:
Argument '1': cannot convert from 'int[]' to 'ref System.Array'
Description of API:
4.2.2.1 AddStroke, AddStrokeXY
Index = object .AddStroke(Ink ) Index = object .AddStrokeXY(InkX, InkY
)
Description
Adds a stroke to the object.
Returns assigned zero-based index of the added stroke in the stroke
array.
o object is an object expression that evaluates to a riteFormInk
object.
o Ink is an array of Longs (in Visual Basic) or Integers (in VB.NET),
representing
strokes (X-value in the lower word and Y-value in the upper word).
o InkX is an array of Integers (in Visual Basic) or Shorts (in
VB.NET), represented X-values
of points.
o InkY is an array of Integers (in Visual Basic) or Shorts (in
VB.NET), represented Y-values
of points.
o Index is a variable of the type Long (in Visual Basic) or Integer
(in VB.NET) or
Variant.
Comment
Those methods cannot be used in scripting languages that doesn't
support typed variables
(like VBScript and JScript).
I have another code implementet VB .NET which calls the same function
with an array of Ints and works well.
Any hint?
thanks
Alfonso
I am implementing a hanwritting recognition benchmark, and when
calling from
my C# code the API of a HWr engine I have the following
Code:
int[] strokes = {myInt1, myInt2, myInt3, myInt4};
ink.AddStroke(strokes);
problem:
Argument '1': cannot convert from 'int[]' to 'ref System.Array'
Description of API:
4.2.2.1 AddStroke, AddStrokeXY
Index = object .AddStroke(Ink ) Index = object .AddStrokeXY(InkX, InkY
)
Description
Adds a stroke to the object.
Returns assigned zero-based index of the added stroke in the stroke
array.
o object is an object expression that evaluates to a riteFormInk
object.
o Ink is an array of Longs (in Visual Basic) or Integers (in VB.NET),
representing
strokes (X-value in the lower word and Y-value in the upper word).
o InkX is an array of Integers (in Visual Basic) or Shorts (in
VB.NET), represented X-values
of points.
o InkY is an array of Integers (in Visual Basic) or Shorts (in
VB.NET), represented Y-values
of points.
o Index is a variable of the type Long (in Visual Basic) or Integer
(in VB.NET) or
Variant.
Comment
Those methods cannot be used in scripting languages that doesn't
support typed variables
(like VBScript and JScript).
I have another code implementet VB .NET which calls the same function
with an array of Ints and works well.
Any hint?
thanks
Alfonso