W
Walter L. Williams
When I run TlbImp.exe on my COM dll, the IDL following has an array of
longs:
[local] HRESULT SomeMethod ([in] short nNumBlocks, [in, size_is(nNumBlocks)]
long *alBlocks, [out, retval] long *plRetVal);
The output creates this method, with a ref int where the array should be:
int SomeMethod (short nNumBlocks, ref int alBlocks);
I have also tried using 'long alBlocks[]' instead of the pointer, but that
doesn't work either. The [in, size_is(..)] *should* be indicating to TlbImp
that it's an array.
Can this be fixed (besides declaring the interface myself)?
====================================================
Walter Williams
Software Engineer
Sawtooth Software, Inc.
http://www.sawtoothsoftware.com
longs:
[local] HRESULT SomeMethod ([in] short nNumBlocks, [in, size_is(nNumBlocks)]
long *alBlocks, [out, retval] long *plRetVal);
The output creates this method, with a ref int where the array should be:
int SomeMethod (short nNumBlocks, ref int alBlocks);
I have also tried using 'long alBlocks[]' instead of the pointer, but that
doesn't work either. The [in, size_is(..)] *should* be indicating to TlbImp
that it's an array.
Can this be fixed (besides declaring the interface myself)?
====================================================
Walter Williams
Software Engineer
Sawtooth Software, Inc.
http://www.sawtoothsoftware.com