Hello! The subject says all I wanted to ask. I have managed method that has array of integers as a parameter. When I call this method from unmanaged code it doesn't work.
Loading
Hello! The subject says all I wanted to ask. I have managed method that has array of integers as a parameter. When I call this method from unmanaged code it doesn't work.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bechir BejaouiPosted Dec 10, 2008, 9:16 AM
private void Method([MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.SysInt)]int[] x)
{
//TO DO: implement your code here
}