Hello,
recently I created a COM Package to call WinC functions via COM from C#.
I am trying to call a BlockFetch function in a managable way. For testing i am using the "Dot NET Connector" sample model.
The output fields are located by the default variable "FetchedData" while using the "occurs" mechanic.
Now to the problem:
All output fields are exposed as single call-by-reference values. When using a view of multiple fields while occuring 64 times the parameter list gets quickly out of hand.
BlockFetch:
Output
FetchedData [5]
DiscountClassCode
DiscountClassDescription
DiscountClassPercentage
Created function:
void BlockFetch(string bstrPositionDiscountClassCode, string bstrControlPosition, int longControlRowsFetched,
ref string bstrFetchedData1DiscountClassCode, ref string bstrFetchedData1DiscountClassDescription, ref double doubleFetchedData1DiscountClassPercentage,
ref string bstrFetchedData2DiscountClassCode, ref string bstrFetchedData2DiscountClassDescription, ref double doubleFetchedData2DiscountClassPercentage,
ref string bstrFetchedData3DiscountClassCode, ref string bstrFetchedData3DiscountClassDescription, ref double doubleFetchedData3DiscountClassPercentage,
ref string bstrFetchedData4DiscountClassCode, ref string bstrFetchedData4DiscountClassDescription, ref double doubleFetchedData4DiscountClassPercentage,
ref string bstrFetchedData5DiscountClassCode, ref string bstrFetchedData5DiscountClassDescription, ref double doubleFetchedData5DiscountClassPercentage);
-> Is it possible to expose the values as arrays? Other idears?
Thanks in advance!