By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,799 Members | 1,356 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,799 IT Pros & Developers. It's quick & easy.

COM Interop and Array Pointers

P: n/a
I am using a COM DLL function that takes a pointer to the first
element in an array of short values.

Foo(short* array)

COM interop provides that function to me in the .NET world with a "ref
short" parameter.

Foo(ref short array)

It seems that no matter what I try, the function only sees the first
element in the array. Is there a way to get it to see then entire
array? Maybe by using some sort of marshalling I haven't tried yet?

Thanks,
Mike
Oct 28 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.