Re: Interop, Late Binding and Array of longs
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Mon, 29 May 2006 15:16:09 +0200
A long in C# is a 64 bit integer, a long in VB is 32 bit!!
Willy.
"Sam" <sami.jaber@xxxxxxxxx> wrote in message
news:1148906179.852432.228960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| Yes Sorry, CallMethodArray is just a Helper method.
|
| Here is the whole thing :
|
| long[] tabMetrics=new long[11]; // Or whatever size
| InteropUtil.CallMethodArray(targetComObject,
| "AvailableMetrics", new object[] { new long[] { 0, 0, 0, 0, 0, 0, 0, 0,
| 0, 0, 0 } });
|
| CallMethodArray throw an exception : Exception from HRESULT: 0x80020005
| (DISP_E_TYPEMISMATCH) ...
|
| Sam
|
.
- Follow-Ups:
- References:
- Interop, Late Binding and Array of longs
- From: Sam
- Re: Interop, Late Binding and Array of longs
- From: chanmm
- Re: Interop, Late Binding and Array of longs
- From: Sam
- Interop, Late Binding and Array of longs
- Prev by Date: Re: OpenFileDialog throws "Illegal characters in path"
- Next by Date: Re: Question on implementing IDisposable
- Previous by thread: Re: Interop, Late Binding and Array of longs
- Next by thread: Re: Interop, Late Binding and Array of longs
- Index(es):