Method in the trading terminal Sterling
Such a structure it in Visual Studio
Trying to call it in my application, but I can not understand what I have to do everything to work correctly.
code:
Throws an error type of the array is not as expected, try a different
The programming language C #.
Please help me, how do I call this method. Thank you.
Code:
GetOrderList(VARIANT_BOOL bOpenOnly, SAFEARRAY(structSTIOrderUpdate) *arrayOrder, long *lCount);
Such a structure it in Visual Studio
Code:
int GetOrderList([In] bool bOpenOnly, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_EMPTY), In, Out] ref Array arrayOrder);
Trying to call it in my application, but I can not understand what I have to do everything to work correctly.
code:
Code:
Array arrList = new Array[10];
var d = stiOrderMaint.GetOrderList(false, ref arrList);
Throws an error type of the array is not as expected, try a different
The programming language C #.
Please help me, how do I call this method. Thank you.
