In VBA, a variable of type "Long" is coded with 4 bytes.
A variable of type "Double" is coded with 8 bytes.
So it is possible for SolidWorks to return 2 integers to your VBA code via a single Double. You then need to use that code to convert the double to 2 Long integers.
I missed the clarification in help.
Two packed integers:
2 curveType as documented in ICurve::Identity
Thank you Simon for quick answer.
This is THE MOST "monkey code" method from SW = GetCurveParams2()
So, I suggest 2 methods to implement this in C#:
byte formatted = BitConverter.GetBytes(vCurveParam); int received = BitConverter.ToInt32(formatted.SkipWhile(x => x == 0).ToArray(),0);
int received = BitConverter.ToInt32(BitConverter.GetBytes(vCurveParam), 4);