I have to pass an array by ref to a referenced Delphi Com dll, but all my attempts end in an error.
I'm using VS2003 and I referenced the com dll in my project with 'add reference'.
The Delphi dll has e.g. a procedure Test with a parameter aParam:
Expand|Select|Wrap|Line Numbers
- procedure Test(var aParam: OleVariant)
Expand|Select|Wrap|Line Numbers
- void Test(ref object aParam)
I tested with this code:
Expand|Select|Wrap|Line Numbers
- object testparam = new float[] {1, 2, 3};
- Test(ref testparam);
What can I do?
Thanks!