When I build a project, I get this error:
Argument '1': cannot convert from 'double[]' to 'ref System.Array'
It is about a VB Activex DLL method that I am trying to call (using
System.Runtime.InteropServices).
Many arguments are arrays of double type, and for each one of them I get
that same error message.
I suppose I missed some pieces here.
Very grateful for some help.
>When I build a project, I get this error:
>Argument '1': cannot convert from 'double[]' to 'ref System.Array'
Call it like this
Array tmp = yourDoubleArray;
yourAxObj.SomeMethod(ref tmp);
You may want to use Tlbimp.exe to generate new interop assemblies with
strongly typed array parameters instead.
Mattias
--
Mattias Sjgren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.