G
Guest
I have a com dll with following method:
System.Object ComGetLocalBatchNumbers ( System.Int32 pn_errorcode ,
System.Int32 maxBatchNumbers )
I use this code to call the method:
int errCode;
object batchNumbers = kit.ComGetLocalBatchNumbers(out errCode, 1024);
I need to convert object "batchNumbers" to an array of int so I can call
another method:
ComLoadLocalBatch ( System.Int32 pn_errorcode , System.Int32 nBatchNumber )
I have tried to read the type of "batchNumbers" with:
temp.GetType().ToString()
and the type is: System.object[]
How do I iterate over the array of object "batchNumbers" and convert to int?
foreach(object o in batchNumbers) doesn't work
System.Object ComGetLocalBatchNumbers ( System.Int32 pn_errorcode ,
System.Int32 maxBatchNumbers )
I use this code to call the method:
int errCode;
object batchNumbers = kit.ComGetLocalBatchNumbers(out errCode, 1024);
I need to convert object "batchNumbers" to an array of int so I can call
another method:
ComLoadLocalBatch ( System.Int32 pn_errorcode , System.Int32 nBatchNumber )
I have tried to read the type of "batchNumbers" with:
temp.GetType().ToString()
and the type is: System.object[]
How do I iterate over the array of object "batchNumbers" and convert to int?
foreach(object o in batchNumbers) doesn't work