Hi Leppie, Thanks for the reply. The reason I pass the first element address because I want to manipulate the value in my COM object. It works fantastically in x86, but doesn't work in x64.
leppie wrote:
(does COM not require you to pass the length parameter too?)
You were right, the length of the array must be passed in to the COM object. But in my case (not in this example), it is actually determine by another attribute that is set previously.
leppie wrote:
Your array length is only 5, so how can you read the 6th element?
Uppppsss... you were right again. It should be new int[6]. Sorry...