A
A. User
I am a C# beginner so I don't know the C# syntax that good.
I have a CF app that manipulates a bunch of data in a byte array.
I need to pass the address of the start of the array as a DWORD
(C# uint) to my unmanaged code function with pinvoke. The unmanaged
code I know works and my app works with the data correctly.
I have made other pinvoke calls and I understand it to some extent.
I can't seem to get the syntax correct for the address of the byte array.
Is there a such thing as a "cast" like in C where I can coheres the start of
the array to a uint?
I tried all kind of permutation of "ref" "&" and get nothing but syntax
errors.
I have a CF app that manipulates a bunch of data in a byte array.
I need to pass the address of the start of the array as a DWORD
(C# uint) to my unmanaged code function with pinvoke. The unmanaged
code I know works and my app works with the data correctly.
I have made other pinvoke calls and I understand it to some extent.
I can't seem to get the syntax correct for the address of the byte array.
Is there a such thing as a "cast" like in C where I can coheres the start of
the array to a uint?
I tried all kind of permutation of "ref" "&" and get nothing but syntax
errors.